summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Grimm <memo42@users.noreply.github.com>2018-05-25 19:09:11 +0200
committerRyan Brown <sb@ryansb.com>2018-05-25 13:09:11 -0400
commitf16ec4e64c37ec8a1df072812327e40fde06f199 (patch)
tree37503ed30ff0d1aac6108df9619bb7c9b4aa977d
parentde57fa71c17157e0df124db477786d2c7d217544 (diff)
downloadansible-f16ec4e64c37ec8a1df072812327e40fde06f199.tar.gz
[AWS] Add check for empty values in elasticache module - fixes #40063 (#40454)
-rw-r--r--lib/ansible/modules/cloud/amazon/elasticache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/cloud/amazon/elasticache.py b/lib/ansible/modules/cloud/amazon/elasticache.py
index 84ddd6ca36..8bcf5cd84e 100644
--- a/lib/ansible/modules/cloud/amazon/elasticache.py
+++ b/lib/ansible/modules/cloud/amazon/elasticache.py
@@ -369,7 +369,7 @@ class ElastiCacheManager(object):
'EngineVersion': self.cache_engine_version
}
for key, value in modifiable_data.items():
- if value is not None and self.data[key] != value:
+ if value is not None and value and self.data[key] != value:
return True
# Check cache security groups