Commit 9371c38a by Jon Hawkesworth

Add -Compress to ConvertTo-Json calls in common powershell code

parent ac14ad14
...@@ -65,7 +65,7 @@ Function Exit-Json($obj) ...@@ -65,7 +65,7 @@ Function Exit-Json($obj)
$obj = New-Object psobject $obj = New-Object psobject
} }
echo $obj | ConvertTo-Json -Depth 99 echo $obj | ConvertTo-Json -Compress -Depth 99
Exit Exit
} }
...@@ -89,7 +89,7 @@ Function Fail-Json($obj, $message = $null) ...@@ -89,7 +89,7 @@ Function Fail-Json($obj, $message = $null)
Set-Attr $obj "msg" $message Set-Attr $obj "msg" $message
Set-Attr $obj "failed" $true Set-Attr $obj "failed" $true
echo $obj | ConvertTo-Json -Depth 99 echo $obj | ConvertTo-Json -Compress -Depth 99
Exit 1 Exit 1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment