Merge pull request #7055 from bpennypacker/rds_modify
cloud/rds : renaming an rds instance always fails
This commit is contained in:
commit
45501e57bd
1 changed files with 6 additions and 0 deletions
|
@ -543,6 +543,12 @@ def main():
|
||||||
found = 1
|
found = 1
|
||||||
if found == 0:
|
if found == 0:
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
# The name of the database has now changed, so we have
|
||||||
|
# to force result to contain the new instance, otherwise
|
||||||
|
# the call below to get_current_resource will fail since it
|
||||||
|
# will be looking for the old instance name.
|
||||||
|
result.id = new_instance_name
|
||||||
else:
|
else:
|
||||||
# Wait for a few seconds since it takes a while for AWS
|
# Wait for a few seconds since it takes a while for AWS
|
||||||
# to change the instance from 'available' to 'modifying'
|
# to change the instance from 'available' to 'modifying'
|
||||||
|
|
Loading…
Reference in a new issue