Skip to content

Commit 3acfab8

Browse files
authored
Fixing handling of '' InstanceValues in DCNM_VRF (#522)
1 parent e7bf85f commit 3acfab8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/modules/dcnm_vrf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,9 @@ def diff_for_attach_deploy(self, want_a, have_a, replace=False):
892892
want_inst_values = {}
893893
have_inst_values = {}
894894
if (
895-
want["instanceValues"] is not None
896-
and have["instanceValues"] is not None
895+
(want["instanceValues"] is not None and want["instanceValues"] != "")
896+
and
897+
(have["instanceValues"] is not None and have["instanceValues"] != "")
897898
):
898899
want_inst_values = ast.literal_eval(want["instanceValues"])
899900
have_inst_values = ast.literal_eval(have["instanceValues"])

0 commit comments

Comments
 (0)