Skip to content

Commit

Permalink
cloudstack: _has_changed() should not compare None values
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed May 1, 2015
1 parent b11cd73 commit 034ac8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ansible/module_utils/cloudstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def _has_changed(self, want_dict, current_dict, only_keys=None):
if only_keys and key not in only_keys:
continue;

# Skip None values
if value is None:
continue;

if key in current_dict:

# API returns string for int in some cases, just to make sure
Expand Down

0 comments on commit 034ac8a

Please sign in to comment.