summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTadej Borovšak <tadej.borovsak@xlab.si>2020-02-05 13:31:01 +0100
committerMatt Clay <matt@mystile.com>2020-03-02 13:17:54 -0800
commitb4614c949eff60f5b3205fc3ef8515fd3cf4a25d (patch)
treea4c40a1c618e7855c70954b1533179db849bf26a
parentfc6e715e382d2581b3b416382961d958363dd067 (diff)
downloadansible-b4614c949eff60f5b3205fc3ef8515fd3cf4a25d.tar.gz
Make nios_txt_record use text field for object lookup
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(),