Adds Python 3.x support for map calls

Wraps map() calls with list() where considered necessary.
This commit is contained in:
Alessandro Pilotti 2014-09-08 17:49:58 +03:00
parent b27d90b41f
commit 502e583d78

View File

@ -155,7 +155,7 @@ class ExtendVolumesPlugin(base.BasePlugin):
def _get_volumes_to_extend(self):
if CONF.volumes_to_extend is not None:
return map(int, CONF.volumes_to_extend)
return list(map(int, CONF.volumes_to_extend))
def execute(self, service, shared_data):
svc = vds.load_vds_service()