Skip to content
Snippets Groups Projects
Commit 3c952cdb authored by Alessandro De Blasis's avatar Alessandro De Blasis
Browse files

Fixes #51 upstream

parent e6cf0e15
Branches
Tags
No related merge requests found
...@@ -274,11 +274,11 @@ def main(): ...@@ -274,11 +274,11 @@ def main():
if options.ntp_servers and options.no_ntp: if options.ntp_servers and options.no_ntp:
module.fail_json( 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: if options.ntp_pool and options.no_ntp:
module.fail_json( 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: #if options.no_nisdomain and options.nisdomain:
# module.fail_json( # module.fail_json(
......
...@@ -261,7 +261,7 @@ def main(): ...@@ -261,7 +261,7 @@ def main():
try: try:
check_zone_overlap(options.domain_name, False) check_zone_overlap(options.domain_name, False)
except ValueError as e: except ValueError as e:
ansible_module.fail_json(str(e)) ansible_module.fail_json(msg=str(e))
# dm_password # dm_password
with redirect_stdout(ansible_log): with redirect_stdout(ansible_log):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment