mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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"
|
||||
$EventSource = $MyInvocation.MyCommand.Name
|
||||
If ($EventSource -eq $Null)
|
||||
If (-Not $EventSource)
|
||||
{
|
||||
$EventSource = "Powershell CLI"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue