From 4e11e35ec71f2357d3e2023e51ebc7d6e5c17506 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 13 Apr 2023 16:59:19 +0200 Subject: [PATCH 1/3] user: Fix idempotence --- plugins/modules/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/user.py b/plugins/modules/user.py index 9a4b66d..4914c76 100755 --- a/plugins/modules/user.py +++ b/plugins/modules/user.py @@ -18,7 +18,7 @@ def main(): state=dict(type='str', default='present', choices=['absent', 'present']), username=dict(type='str', aliases=['name', 'email', 'happydomain_username']), password=dict(type='str', aliases=['passwd', 'happydomain_password'], no_log=True), - allowcommercials=dict(type='bool'), + allowcommercials=dict(type='bool', default=False), email_verified=dict(type='bool', default=True), socket=dict(type='path', default='/var/lib/happydomain/happydomain.sock'), ) From 9422b203206ad43f4d9ace972b8c25b24ca93c05 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 13 Apr 2023 17:16:25 +0200 Subject: [PATCH 2/3] provider: Fix idempotence by retrieving full provider bedore editing it --- plugins/modules/provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/modules/provider.py b/plugins/modules/provider.py index dd83526..9924638 100644 --- a/plugins/modules/provider.py +++ b/plugins/modules/provider.py @@ -48,6 +48,7 @@ def main(): for s in providers: if s._srctype == p['type'] and s._comment == p['name']: + s = a.provider_get(s._id) found = True if p['state'] == 'absent': From 551223fcf3ae100ac54b1ce22bc5fa1c09d8e5a4 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 13 Apr 2023 17:17:06 +0200 Subject: [PATCH 3/3] Prepare 0.3.1 --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index d1e3c0f..a200034 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: happydns name: happydomain -version: 0.3.0 +version: 0.3.1 readme: README.md authors: - happyDomain Team