Created
March 4, 2020 22:01
-
-
Save seocam/06eebf4bb998ca04e185deb9c12d6e20 to your computer and use it in GitHub Desktop.
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
# Execute command only if configuration changes. | |
if not compare_args_ipa(ansible_module, args, res_find): | |
try: | |
api_command_no_name(ansible_module, 'dnsconfig_mod', args) | |
except Exception as e: | |
msg = str(e) | |
ansible_module.fail_json(msg="dnsconfig_mod: %s" % msg) | |
else: | |
# If command did not fail, something changed. | |
changed = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment