fixed bug in delete action - skip_final_snapshot must always be set
This commit is contained in:
parent
041a4872fe
commit
d62beb2df5
1 changed files with 3 additions and 0 deletions
|
@ -423,6 +423,9 @@ def main():
|
||||||
if snapshot:
|
if snapshot:
|
||||||
params["skip_final_snapshot"] = False
|
params["skip_final_snapshot"] = False
|
||||||
params["final_snapshot_id"] = snapshot
|
params["final_snapshot_id"] = snapshot
|
||||||
|
else:
|
||||||
|
params["skip_final_snapshot"] = True
|
||||||
|
|
||||||
db = conn.delete_dbinstance(instance_name, **params)
|
db = conn.delete_dbinstance(instance_name, **params)
|
||||||
|
|
||||||
except boto.exception.BotoServerError, e:
|
except boto.exception.BotoServerError, e:
|
||||||
|
|
Loading…
Reference in a new issue