From 1f233b09e53aff4bd76d2e89819c3f843bf51980 Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Thu, 1 Sep 2022 10:44:46 +0530 Subject: [PATCH 1/2] Added lines for deleting template --- plugins/modules/nios_network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/modules/nios_network.py b/plugins/modules/nios_network.py index e53782dd..d075fb20 100644 --- a/plugins/modules/nios_network.py +++ b/plugins/modules/nios_network.py @@ -238,6 +238,7 @@ def check_ip_addr_type(obj_filter, ib_spec): check_ip = ip.split('/') del ib_spec['container'] # removing the container key from post arguments del ib_spec['options'] # removing option argument as for network container it's not supported + del ib_spec['template'] # removing template argument as it is not searchable argument if validate_ip_address(check_ip[0]): return NIOS_IPV4_NETWORK_CONTAINER, ib_spec elif validate_ip_v6_address(check_ip[0]): @@ -245,6 +246,7 @@ def check_ip_addr_type(obj_filter, ib_spec): else: check_ip = ip.split('/') del ib_spec['container'] # removing the container key from post arguments + del ib_spec['template'] # removing template argument as it is not searchable argument if validate_ip_address(check_ip[0]): return NIOS_IPV4_NETWORK, ib_spec elif validate_ip_v6_address(check_ip[0]): From fecc830e9932b65e109d1bdfe919b888329d655d Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Fri, 2 Sep 2022 09:22:22 +0530 Subject: [PATCH 2/2] Added two spaces before comment --- plugins/modules/nios_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/nios_network.py b/plugins/modules/nios_network.py index d075fb20..62a9f447 100644 --- a/plugins/modules/nios_network.py +++ b/plugins/modules/nios_network.py @@ -238,7 +238,7 @@ def check_ip_addr_type(obj_filter, ib_spec): check_ip = ip.split('/') del ib_spec['container'] # removing the container key from post arguments del ib_spec['options'] # removing option argument as for network container it's not supported - del ib_spec['template'] # removing template argument as it is not searchable argument + del ib_spec['template'] # removing template argument as it is not searchable argument if validate_ip_address(check_ip[0]): return NIOS_IPV4_NETWORK_CONTAINER, ib_spec elif validate_ip_v6_address(check_ip[0]):