Created
March 7, 2017 18:53
-
-
Save tbielawa/66fd0e91fa749afe2ff12d6e9a41079e to your computer and use it in GitHub Desktop.
output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python ./junkformatter.py | |
{'failed': True, | |
'msg': 'All objects are not valid. If you are a supported customer please\ncontact Red Hat Support providing the complete output above. If you\nare not a customer please contact [email protected] for\nassistance.', | |
'results': 'all_invalid', | |
'state': 'list'} | |
{'msg': 'All objects are not valid. If you are a supported customer please\ncontact Red Hat Support providing the complete output above. If you\nare not a customer please contact [email protected] for\nassistance.', 'failed': True, 'state': 'list', 'results': 'all_invalid'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
failed = True | |
msg = """All objects are not valid. If you are a supported customer please | |
contact Red Hat Support providing the complete output above. If you | |
are not a customer please contact [email protected] for | |
assistance.""" | |
ret_obj = { | |
'failed': True, | |
'msg': msg, | |
'state': 'list', | |
'results': 'all_invalid' | |
} | |
from pprint import pprint as p | |
p(ret_obj) | |
print ret_obj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment