Potential fix for 640

reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent fbb9dcc69a
commit 6cbce4d911

@ -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))

Loading…
Cancel
Save