mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
nsupdate: fix missing keyring initialization without TSIG auth (#11461)
* nsupdate: fix missing keyring initialization without TSIG auth * Update changelogs/fragments/fix-nsupdate-keyring.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
2
changelogs/fragments/fix-nsupdate-keyring.yml
Normal file
2
changelogs/fragments/fix-nsupdate-keyring.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- nsupdate - fix ``AttributeError`` when using the module without TSIG authentication (https://github.com/ansible-collections/community.general/issues/11460, https://github.com/ansible-collections/community.general/pull/11461).
|
||||||
@@ -248,6 +248,9 @@ class RecordManager:
|
|||||||
module.fail_json(msg="Missing key_secret")
|
module.fail_json(msg="Missing key_secret")
|
||||||
except binascii_error as e:
|
except binascii_error as e:
|
||||||
module.fail_json(msg=f"TSIG key error: {e}")
|
module.fail_json(msg=f"TSIG key error: {e}")
|
||||||
|
else:
|
||||||
|
self.keyring = None
|
||||||
|
self.keyname = None
|
||||||
|
|
||||||
if module.params["zone"] is None:
|
if module.params["zone"] is None:
|
||||||
if module.params["record"][-1] != ".":
|
if module.params["record"][-1] != ".":
|
||||||
|
|||||||
Reference in New Issue
Block a user