From 7b03b581dcefcd44086789db1f052b03f2e4c148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadej=20Borov=C5=A1ak?= <70951+tadeboro@users.noreply.github.com> Date: Tue, 11 Feb 2020 00:31:19 +0100 Subject: [PATCH] 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. --- lib/ansible/modules/net_tools/nios/nios_txt_record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0f92ac67dbe..a2355fcaf56 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(),