fix python 2.6 compatibility
diff --git a/wally/start_vms.py b/wally/start_vms.py
index de1f312..e3b9245 100644
--- a/wally/start_vms.py
+++ b/wally/start_vms.py
@@ -80,7 +80,7 @@
'OS_AUTH_URL': auth_url
}
- params_s = " ".join("{}={}".format(k, v) for k, v in params.items())
+ params_s = " ".join("{0}={1}".format(k, v) for k, v in params.items())
spath = os.path.dirname(wally.__file__)
spath = os.path.dirname(spath)
@@ -389,9 +389,9 @@
# wait till vm actually deleted
- logger.warning("Volume deletion commented out")
- # for vol in volumes_to_delete:
- # logger.debug("Deleting volume " + vol.display_name)
- # cinder.volumes.delete(vol)
+ # logger.warning("Volume deletion commented out")
+ for vol in volumes_to_delete:
+ logger.debug("Deleting volume " + vol.display_name)
+ cinder.volumes.delete(vol)
logger.debug("Clearing done (yet some volumes may still deleting)")