From 7dc06bed837b54a31a2e51bea4b375041b50a648 Mon Sep 17 00:00:00 2001 From: John R Barker Date: Tue, 3 Jul 2018 13:28:26 -0700 Subject: [PATCH] Backport/2.5/42209 (#42213) * nsupdate.py: Fix typo (#42209) Signed-off-by: David Galloway (cherry picked from commit 9539284010eb4bc7e50a30751de2b978c8db5675) * nsupdate_fix_hmac-sha384 --- changelogs/fragments/nsupdate_fix_hmac-sha384.yaml | 2 ++ lib/ansible/modules/net_tools/nsupdate.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/nsupdate_fix_hmac-sha384.yaml diff --git a/changelogs/fragments/nsupdate_fix_hmac-sha384.yaml b/changelogs/fragments/nsupdate_fix_hmac-sha384.yaml new file mode 100644 index 00000000000..21af77fa97b --- /dev/null +++ b/changelogs/fragments/nsupdate_fix_hmac-sha384.yaml @@ -0,0 +1,2 @@ +bugfixes: + - nsupdate - allow hmac-sha384 https://github.com/ansible/ansible/pull/42209 diff --git a/lib/ansible/modules/net_tools/nsupdate.py b/lib/ansible/modules/net_tools/nsupdate.py index 518bdbd9477..67b5a3777ee 100644 --- a/lib/ansible/modules/net_tools/nsupdate.py +++ b/lib/ansible/modules/net_tools/nsupdate.py @@ -53,7 +53,7 @@ options: key_algorithm: description: - Specify key algorithm used by C(key_secret). - choices: ['HMAC-MD5.SIG-ALG.REG.INT', 'hmac-md5', 'hmac-sha1', 'hmac-sha224', 'hmac-sha256', 'hamc-sha384', + choices: ['HMAC-MD5.SIG-ALG.REG.INT', 'hmac-md5', 'hmac-sha1', 'hmac-sha224', 'hmac-sha256', 'hmac-sha384', 'hmac-sha512'] default: 'hmac-md5' zone: @@ -323,7 +323,7 @@ class RecordManager(object): def main(): tsig_algs = ['HMAC-MD5.SIG-ALG.REG.INT', 'hmac-md5', 'hmac-sha1', 'hmac-sha224', - 'hmac-sha256', 'hamc-sha384', 'hmac-sha512'] + 'hmac-sha256', 'hmac-sha384', 'hmac-sha512'] module = AnsibleModule( argument_spec=dict(