Fixes #51 upstream

This commit is contained in:
Alessandro De Blasis
2019-02-01 13:15:44 +00:00
parent e6cf0e1578
commit 3c952cdb16
2 changed files with 3 additions and 3 deletions

View File

@@ -274,11 +274,11 @@ def main():
if options.ntp_servers and options.no_ntp:
module.fail_json(
"--ntp-server cannot be used together with --no-ntp")
msg="--ntp-server cannot be used together with --no-ntp")
if options.ntp_pool and options.no_ntp:
module.fail_json(
"--ntp-pool cannot be used together with --no-ntp")
msg="--ntp-pool cannot be used together with --no-ntp")
#if options.no_nisdomain and options.nisdomain:
# module.fail_json(

View File

@@ -261,7 +261,7 @@ def main():
try:
check_zone_overlap(options.domain_name, False)
except ValueError as e:
ansible_module.fail_json(str(e))
ansible_module.fail_json(msg=str(e))
# dm_password
with redirect_stdout(ansible_log):