summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorThierry Carrez <thierry@openstack.org>2011-08-09 13:30:06 +0100
committerThierry Carrez <thierry@openstack.org>2011-08-09 13:30:06 +0100
commit446fb79eb0025ce50cac9fc5496d4e4840134bce (patch)
treeb03e7914736a256b0178038581339c8bc4788dd3 /nova/utils.py
parent7e810e1f266daaa63167ea8412dc0416e88f688f (diff)
downloadnova-446fb79eb0025ce50cac9fc5496d4e4840134bce.tar.gz
nova-446fb79eb0025ce50cac9fc5496d4e4840134bce.tar.xz
nova-446fb79eb0025ce50cac9fc5496d4e4840134bce.zip
Command args can be a tuple, convert them to list
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/utils.py b/nova/utils.py
index dc81abdb9..80044e37d 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -155,7 +155,7 @@ def execute(*cmd, **kwargs):
'to utils.execute: %r') % kwargs)
if run_as_root:
- cmd = shlex.split(FLAGS.sudo_helper) + cmd
+ cmd = shlex.split(FLAGS.sudo_helper) + list(cmd)
cmd = map(str, cmd)
while attempts > 0: