Fix Agent actions for docker servers (#1489)

This commit is contained in:
Charles Gagnon
2022-05-10 11:09:57 -07:00
committed by GitHub
parent 3af029315b
commit a4ef58212b
2 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
JobStep jobStep = null;
if (jobData.Job != null)
{
const string UrnFormatStr = "Server[@Name='{0}']/JobServer[@Name='{0}']/Job[@Name='{1}']/Step[@Name='{2}']";
const string UrnFormatStr = "Server/JobServer[@Name='{0}']/Job[@Name='{1}']/Step[@Name='{2}']";
string serverName = this.DataContainer.Server.Name.ToUpper();
string urn = string.Format(UrnFormatStr, serverName, jobData.Job.Name, stepName);
jobStep = jobData.Job.Parent.Parent.GetSmoObject(urn) as JobStep;