You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the windows.ps1 task, if the agent installation fails and control is transferred to the catch block, the $jsonCertName and $jsonHostName variables are out of scope and display blank values.
Sample output:
{
"status" : "failure",
"host" : "",
"certname" : "",
"master" : "puppet.classroom.puppet.com",
"_error" : {
"msg" : "Unable to install agent on with certname : Exception calling \"DownloadString\" with \"1\" argument(s): \"The request was aborted: Could not create SSL/TLS secure channel.\"",
"kind": "powershell_error",
"details" : {}
}
}
The text was updated successfully, but these errors were encountered:
In the
windows.ps1
task, if the agent installation fails and control is transferred to thecatch
block, the$jsonCertName
and$jsonHostName
variables are out of scope and display blank values.Sample output:
The text was updated successfully, but these errors were encountered: