mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07: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"
|
$ErrorActionPreference = "Stop"
|
||||||
$EventSource = $MyInvocation.MyCommand.Name
|
$EventSource = $MyInvocation.MyCommand.Name
|
||||||
If ($EventSource -eq $Null)
|
If (-Not $EventSource)
|
||||||
{
|
{
|
||||||
$EventSource = "Powershell CLI"
|
$EventSource = "Powershell CLI"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue