diff options
author | Rene Moser <mail@renemoser.net> | 2015-05-01 17:25:06 +0200 |
---|---|---|
committer | Rene Moser <mail@renemoser.net> | 2015-05-01 17:25:06 +0200 |
commit | 034ac8ae78553678716682cd4cd68cfb61873fe9 (patch) | |
tree | 23db3cbacdcb01cba0fa038cb556393916ad2e1b | |
parent | b11cd73df1ac11b4718c882f4db3f8180f3121bf (diff) | |
download | ansible-034ac8ae78553678716682cd4cd68cfb61873fe9.tar.gz |
cloudstack: _has_changed() should not compare None values
-rw-r--r-- | lib/ansible/module_utils/cloudstack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/cloudstack.py b/lib/ansible/module_utils/cloudstack.py index 518ef7a732..7ea02d1be7 100644 --- a/lib/ansible/module_utils/cloudstack.py +++ b/lib/ansible/module_utils/cloudstack.py @@ -81,6 +81,10 @@ class AnsibleCloudStack: 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 |