From 502e583d784bbe1049946ac828437660d08783e1 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Mon, 8 Sep 2014 17:49:58 +0300 Subject: [PATCH] Adds Python 3.x support for map calls Wraps map() calls with list() where considered necessary. --- cloudbaseinit/plugins/windows/extendvolumes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudbaseinit/plugins/windows/extendvolumes.py b/cloudbaseinit/plugins/windows/extendvolumes.py index 1dfb5370..6143e92e 100644 --- a/cloudbaseinit/plugins/windows/extendvolumes.py +++ b/cloudbaseinit/plugins/windows/extendvolumes.py @@ -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()