From d01ebe66afc5415e41369a344a69d52845233ab2 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Mon, 11 Dec 2023 09:34:52 +0100 Subject: [PATCH 1/2] Fix concatenation failure when zone is not defined --- plugins/modules/service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: From cc55808f31e72c9b28aadc56a85ab1091aa3acaa Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Mon, 11 Dec 2023 09:35:22 +0100 Subject: [PATCH 2/2] Prepare 0.4.1 --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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