Make netns_wrapper to be compatible with python3

netns_wrapper is using map() function when running command and this
returns map object instead of list in python 3. This patch fixes it
to return list object always.

Change-Id: I22ddde78f2d8af042789e52ea82ec3e8099f7888
This commit is contained in:
Slawek Kaplonski 2019-06-11 12:34:08 +02:00
parent 183934eae6
commit c2214f24d7
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def setup_conf():
def execute(cmd):
if not cmd:
return
cmd = map(str, cmd)
cmd = list(map(str, cmd))
LOG.debug("Running command: %s", cmd)
env = os.environ.copy()
obj = utils.subprocess_popen(cmd, shell=False,