mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-12 20:00:58 +00: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:
@@ -114,7 +114,7 @@ Trap
|
||||
}
|
||||
$ErrorActionPreference = "Stop"
|
||||
$EventSource = $MyInvocation.MyCommand.Name
|
||||
If ($EventSource -eq $Null)
|
||||
If (-Not $EventSource)
|
||||
{
|
||||
$EventSource = "Powershell CLI"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user