summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTadej Borovšak <70951+tadeboro@users.noreply.github.com>2020-02-11 00:31:19 +0100
committerGitHub <noreply@github.com>2020-02-10 15:31:19 -0800
commit7b03b581dcefcd44086789db1f052b03f2e4c148 (patch)
treea14224711470a52d92ba6f305a4162c0eab3e525
parent569218f0cdaa0d29893336d1b322a647e2d8f5b7 (diff)
downloadansible-7b03b581dcefcd44086789db1f052b03f2e4c148.tar.gz
Make nios_txt_record use text field for object lookup (#67120)
Up until now, nios_txt_record assumed that the name and view parameters uniquely described a TXT record. What this meant is that it was impossible to have more than one TXT record with a certain name. Changes in this commit expands the set of parameters that uniquely identify the TXT record with a text field.
-rw-r--r--lib/ansible/modules/net_tools/nios/nios_txt_record.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/net_tools/nios/nios_txt_record.py b/lib/ansible/modules/net_tools/nios/nios_txt_record.py
index 0f92ac67db..a2355fcaf5 100644
--- a/lib/ansible/modules/net_tools/nios/nios_txt_record.py
+++ b/lib/ansible/modules/net_tools/nios/nios_txt_record.py
@@ -106,7 +106,7 @@ def main():
ib_spec = dict(
name=dict(required=True, ib_req=True),
view=dict(default='default', aliases=['dns_view'], ib_req=True),
- text=dict(type='str'),
+ text=dict(type='str', ib_req=True),
ttl=dict(type='int'),
extattrs=dict(type='dict'),
comment=dict(),