Created
June 1, 2016 13:31
-
-
Save antoviaque/638836754a9819904a1d01e8e9d8344f to your computer and use it in GitHub Desktop.
Terminate all VMs of all instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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