From f16ec4e64c37ec8a1df072812327e40fde06f199 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Fri, 25 May 2018 19:09:11 +0200 Subject: [PATCH] [AWS] Add check for empty values in elasticache module - fixes #40063 (#40454) --- lib/ansible/modules/cloud/amazon/elasticache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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