Skip to content

Commit

Permalink
Wait until instance is terminated before returning from script
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Sep 26, 2023
1 parent 78fac0c commit 9d62e13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions release-process/test-system.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def terminate(self):
response = self.instance.terminate()
if response['ResponseMetadata']['HTTPStatusCode'] != 200:
print('Terminating VM %s failed: %s'%(self.instance_id, response), file=sys.stderr)
self.instance.wait_until_terminated()

with open(args.distro_config_json, 'r') as f:
distro_config = json.load(f)
Expand Down

0 comments on commit 9d62e13

Please sign in to comment.