diff --git a/lib/ansible/modules/cloud/amazon/elasticache.py b/lib/ansible/modules/cloud/amazon/elasticache.py index 84ddd6ca366..8bcf5cd84e5 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