mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Bump deps for ntlm-auth and PSScriptAnalyzer (#55269)
This commit is contained in:
parent
65dcb4242a
commit
04cae4134f
7 changed files with 63 additions and 13 deletions
|
@ -48,7 +48,7 @@ Function Exit-Json($obj)
|
|||
}
|
||||
|
||||
if (-not $obj.ContainsKey('changed')) {
|
||||
Set-Attr $obj "changed" $false
|
||||
Set-Attr -obj $obj -name "changed" -value $false
|
||||
}
|
||||
|
||||
Write-Output $obj | ConvertTo-Json -Compress -Depth 99
|
||||
|
@ -79,11 +79,11 @@ Function Fail-Json($obj, $message = $null)
|
|||
}
|
||||
|
||||
# Still using Set-Attr for PSObject compatibility
|
||||
Set-Attr $obj "msg" $message
|
||||
Set-Attr $obj "failed" $true
|
||||
Set-Attr -obj $obj -name "msg" -value $message
|
||||
Set-Attr -obj $obj -name "failed" -value $true
|
||||
|
||||
if (-not $obj.ContainsKey('changed')) {
|
||||
Set-Attr $obj "changed" $false
|
||||
Set-Attr -obj $obj -name "changed" -value $false
|
||||
}
|
||||
|
||||
Write-Output $obj | ConvertTo-Json -Compress -Depth 99
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue