Skip to content

Instantly share code, notes, and snippets.

@paulcalabro
Last active October 4, 2018 08:31
Show Gist options
  • Select an option

  • Save paulcalabro/36245a8fcd3447733623de3f1e6803d6 to your computer and use it in GitHub Desktop.

Select an option

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
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])))
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