Skip to content
Snippets Groups Projects
Commit 6c89c746 authored by Arie Peterson's avatar Arie Peterson
Browse files

Follow changed values of droplet status API

parent c174bc27
No related branches found
No related tags found
1 merge request!6Resolve "Update to changed droplet status API"
......@@ -275,7 +275,7 @@ def status_droplet(droplet_id: int):
def terminate_droplet(droplet_id: int):
"""Terminate a droplet by powering it down and deleting it."""
shutdown_droplet(droplet_id)
wait_for_state(droplet_id, 'stopped')
wait_for_state(droplet_id, 'off')
delete_droplet(droplet_id)
......@@ -321,7 +321,7 @@ def terminate_droplets_by_name(name_regex: str, ndays: int = 0,
# Lastly delete all droplets:
for droplet in terminate_droplets:
wait_for_state(droplet['id'], 'stopped')
wait_for_state(droplet['id'], 'off')
delete_droplet(droplet['id'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment