cloudstack: _has_changed() should not compare None values

This commit is contained in:
Rene Moser 2015-05-01 17:25:06 +02:00
parent b11cd73df1
commit 034ac8ae78

View file

@ -81,6 +81,10 @@ class AnsibleCloudStack:
if only_keys and key not in only_keys: if only_keys and key not in only_keys:
continue; continue;
# Skip None values
if value is None:
continue;
if key in current_dict: if key in current_dict:
# API returns string for int in some cases, just to make sure # API returns string for int in some cases, just to make sure