Skip to content

Commit

Permalink
[ignore] fix sanity issues for type matching in nd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross authored and lhercot committed Nov 15, 2023
1 parent c05901d commit 9615945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/nd.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def issubset(subset, superset):
return True

# Both objects have a different type
if type(subset) != type(superset):
if isinstance(subset) is not isinstance(superset):
return False

for key, value in subset.items():
Expand All @@ -78,7 +78,7 @@ def issubset(subset, superset):
return False

# Item has different types in subset and superset
if type(superset.get(key)) != type(value):
if isinstance(superset.get(key)) is not isinstance(value):
return False

# Compare if item values are subset
Expand Down

0 comments on commit 9615945

Please sign in to comment.