mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Bump deps for ntlm-auth and PSScriptAnalyzer (#55269)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user