Skip to content

Commit

Permalink
Meraki - Remove type comparison for idempotency check (ansible#65338)
Browse files Browse the repository at this point in the history
* Remove type comparison in is_update_required()

* Add changelog
  • Loading branch information
kbreit authored and Qalthos committed Dec 4, 2019
1 parent f4a9f23 commit 79b088a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/meraki-dont-compare-type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- meraki - Idempotency check no longer compares types of objects
3 changes: 0 additions & 3 deletions lib/ansible/module_utils/network/meraki/meraki.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ def is_update_required(self, original, proposed, optional_ignore=None):
if optional_ignore is not None:
self.ignored_keys = self.ignored_keys + optional_ignore

if type(original) != type(proposed):
# self.fail_json(msg="Types don't match")
return True
if isinstance(original, list):
if len(original) != len(proposed):
# self.fail_json(msg="Length of lists don't match")
Expand Down

0 comments on commit 79b088a

Please sign in to comment.