We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cde9dc3 commit 1e56756Copy full SHA for 1e56756
plugins/modules/dcnm_network.py
@@ -2062,7 +2062,7 @@ def get_diff_merge(self, replace=False):
2062
# If the playbook sets the deploy key to False, then we need to remove the network from the deploy list.
2063
for net in all_nets:
2064
want_net_data = self.find_dict_in_list_by_key_value(search=self.config, key="net_name", value=net)
2065
- if want_net_data.get("deploy") is False:
+ if (want_net_data is not None) and (want_net_data.get("deploy") is False):
2066
modified_all_nets.remove(net)
2067
2068
if modified_all_nets:
0 commit comments