Compare commits

...

3 commits

Author SHA1 Message Date
551223fcf3 Prepare 0.3.1
All checks were successful
continuous-integration/drone/tag Build is passing
2023-04-13 17:17:06 +02:00
9422b20320 provider: Fix idempotence by retrieving full provider bedore editing it 2023-04-13 17:16:25 +02:00
4e11e35ec7 user: Fix idempotence 2023-04-13 16:59:19 +02:00
3 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
---
namespace: happydns
name: happydomain
version: 0.3.0
version: 0.3.1
readme: README.md
authors:
- happyDomain Team <happydomain.org>

View file

@ -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':

View file

@ -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'),
)