Bump deps for ntlm-auth and PSScriptAnalyzer (#55269)

This commit is contained in:
Jordan Borean 2019-04-16 06:43:41 +10:00 committed by GitHub
commit 04cae4134f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 63 additions and 13 deletions

View file

@ -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