diff options
| author | Thierry Carrez <thierry@openstack.org> | 2011-08-09 13:30:06 +0100 |
|---|---|---|
| committer | Thierry Carrez <thierry@openstack.org> | 2011-08-09 13:30:06 +0100 |
| commit | 446fb79eb0025ce50cac9fc5496d4e4840134bce (patch) | |
| tree | b03e7914736a256b0178038581339c8bc4788dd3 /nova | |
| parent | 7e810e1f266daaa63167ea8412dc0416e88f688f (diff) | |
| download | nova-446fb79eb0025ce50cac9fc5496d4e4840134bce.tar.gz nova-446fb79eb0025ce50cac9fc5496d4e4840134bce.tar.xz nova-446fb79eb0025ce50cac9fc5496d4e4840134bce.zip | |
Command args can be a tuple, convert them to list
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/utils.py | 2 |
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: |
