Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.