Skip to content

Commit 6b1d05f

Browse files
authored
fix key issue: 'ENABLE_MACSEC' on dcnm_links.py (#504)
* Update dcnm_links.py Add safe.get for ENABLE_MACSEC, as the key is not always returned by ND. * Update dcnm_links.py * Update dcnm_links.py
1 parent 007de68 commit 6b1d05f

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
@@ -3076,7 +3076,7 @@ def dcnm_links_compare_intra_fabric_link_params(self, wlink, hlink):
30763076
)
30773077
):
30783078
if (
3079-
str(wlink["nvPairs"]["ENABLE_MACSEC"]).lower()
3079+
str(wlink["nvPairs"].get("ENABLE_MACSEC")).lower()
30803080
!= str(hlink["nvPairs"].get("ENABLE_MACSEC")).lower()
30813081
):
30823082
mismatch_reasons.append(

0 commit comments

Comments
 (0)