diff --git a/galaxy.yml b/galaxy.yml index 454f3a1..2b60f2a 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: happydns name: happydomain -version: 0.4.0 +version: 0.4.1 readme: README.md authors: - happyDomain Team diff --git a/plugins/modules/service.py b/plugins/modules/service.py index a33e410..9ba6bd2 100644 --- a/plugins/modules/service.py +++ b/plugins/modules/service.py @@ -96,7 +96,10 @@ def main(): break else: - module.fail_json(msg="No zone found with id " + p['zone']) + if p['zone'] is None: + module.fail_json(msg="No zone found in domain " + p['domain']) + else: + module.fail_json(msg="No zone found with id " + p['zone']) return break else: