Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created March 7, 2017 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbielawa/66fd0e91fa749afe2ff12d6e9a41079e to your computer and use it in GitHub Desktop.
Save tbielawa/66fd0e91fa749afe2ff12d6e9a41079e to your computer and use it in GitHub Desktop.
output
$ 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 users@lists.openshift.redhat.com 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 users@lists.openshift.redhat.com for\nassistance.', 'failed': True, 'state': 'list', 'results': 'all_invalid'}
#!/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 users@lists.openshift.redhat.com 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