Adds Python 3.x support for map calls
Wraps map() calls with list() where considered necessary.
This commit is contained in:
parent
b27d90b41f
commit
502e583d78
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user