Skip to content

Commit db277e8

Browse files
authored
Update dcnm_links.py (#478)
1 parent 8334758 commit db277e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/dcnm_links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ def dcnm_links_get_have(self):
23962396
have = self.dcnm_links_get_links_info_from_dcnm(link)
23972397
if (have != []) and (have not in self.have):
23982398
# we do not get information about PEER_CONF, PEER_DESC, MTU from DCNM
2399-
if have["templateName"] == self.templates["int_pre_provision_intra_fabric_link"]:
2399+
if have.get("templateName") == self.templates["int_pre_provision_intra_fabric_link"]:
24002400
have["nvPairs"]["PEER1_CONF"] = have["nvPairs"].get("PEER1_CONF", "")
24012401
have["nvPairs"]["PEER2_CONF"] = have["nvPairs"].get("PEER2_CONF", "")
24022402
have["nvPairs"]["MTU"] = have["nvPairs"].get("MTU", 1500)

0 commit comments

Comments
 (0)