Last active
October 4, 2018 08:31
-
-
Save paulcalabro/36245a8fcd3447733623de3f1e6803d6 to your computer and use it in GitHub Desktop.
These are code snippets that can be used to debug ansible-module-foreman
This file contains hidden or 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
| for key in comparable_keys: | |
| if data[key] != os.get(key, data[key]): | |
| module.fail_json(msg='Problematic key: {0} vs {1}'.format(data[key], os.get(key, data[key]))) |
This file contains hidden or 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
| module.fail_json(msg='Debug data: {0}'.format(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment