Small fix for running using Invoke-Expression
A small fix suggested by a user for running ConfigureRemotingForAnsible. This fixes #20512
This commit is contained in:
parent
899e336b1e
commit
e64ef8b0ab
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ Trap
|
||||||
}
|
}
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
$EventSource = $MyInvocation.MyCommand.Name
|
$EventSource = $MyInvocation.MyCommand.Name
|
||||||
If ($EventSource -eq $Null)
|
If (-Not $EventSource)
|
||||||
{
|
{
|
||||||
$EventSource = "Powershell CLI"
|
$EventSource = "Powershell CLI"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue