Browse code

unpause paused instances before terminating

Anthony Young authored on 2011/11/02 21:03:38
Showing 1 changed files
... ...
@@ -229,6 +229,7 @@ xe vm-list --minimal name-label="$LABEL" | xargs ./scripts/uninstall-os-vpx.sh
229 229
 # Destroy any instances that were launched
230 230
 for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do
231 231
     echo "Shutting down nova instance $uuid"
232
+    xe vm-unpause uuid=$uuid || true
232 233
     xe vm-shutdown uuid=$uuid
233 234
     xe vm-destroy uuid=$uuid
234 235
 done