Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antoviaque/638836754a9819904a1d01e8e9d8344f to your computer and use it in GitHub Desktop.
Save antoviaque/638836754a9819904a1d01e8e9d8344f to your computer and use it in GitHub Desktop.
Terminate all VMs of all instances
def terminate_ALL_instance_vms():
for inst in OpenEdXInstance.objects.all():
for appserver in inst.appserver_set.all():
appserver.terminate_vm()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment