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
parent 65dcb4242a
commit 04cae4134f
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