1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Potential fix for 640

This commit is contained in:
Toshio Kuratomi 2015-01-13 22:39:20 -08:00 committed by Matt Clay
parent ea77ac076b
commit f3d41cdb06

View file

@ -357,7 +357,9 @@ class ElastiCacheManager(object):
'modifying': 'available', 'modifying': 'available',
'deleting': 'gone' 'deleting': 'gone'
} }
if self.status == awaited_status:
# No need to wait, we're already done
return
if status_map[self.status] != awaited_status: if status_map[self.status] != awaited_status:
msg = "Invalid awaited status. '%s' cannot transition to '%s'" msg = "Invalid awaited status. '%s' cannot transition to '%s'"
self.module.fail_json(msg=msg % (self.status, awaited_status)) self.module.fail_json(msg=msg % (self.status, awaited_status))