Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9371c38a
Commit
9371c38a
authored
May 29, 2015
by
Jon Hawkesworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -Compress to ConvertTo-Json calls in common powershell code
parent
ac14ad14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/module_utils/powershell.ps1
+2
-2
No files found.
lib/ansible/module_utils/powershell.ps1
View file @
9371c38a
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment