Bugfix: fixes new-alias bug when debugging powershell (#17816)
This commit is contained in:
parent
c6fa701ab1
commit
35fba5718d
1 changed files with 6 additions and 2 deletions
|
@ -154,8 +154,12 @@ Function Get-AnsibleParam($obj, $name, $default = $null, $resultobj, $failifempt
|
|||
}
|
||||
}
|
||||
|
||||
#Alias Get-attr-->Get-AnsibleParam for backwards compat.
|
||||
New-Alias -Name Get-attr -Value Get-AnsibleParam
|
||||
#Alias Get-attr-->Get-AnsibleParam for backwards compat. Only add when needed to ease debugging of scripts
|
||||
If (!(Get-Alias -Name "Get-attr" -ErrorAction SilentlyContinue))
|
||||
{
|
||||
New-Alias -Name Get-attr -Value Get-AnsibleParam
|
||||
}
|
||||
|
||||
|
||||
# Helper filter/pipeline function to convert a value to boolean following current
|
||||
# Ansible practices
|
||||
|
|
Loading…
Reference in a new issue