diff options
| author | Eric Windisch <eric@cloudscaling.com> | 2011-03-11 12:09:20 -0500 |
|---|---|---|
| committer | Eric Windisch <eric@cloudscaling.com> | 2011-03-11 12:09:20 -0500 |
| commit | 65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b (patch) | |
| tree | 33b20c099588370ece08843e407a908ac844d82b /plugins | |
| parent | 2379fc056d96d56c852e94fe7c3898049a3670bc (diff) | |
| download | nova-65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b.tar.gz nova-65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b.tar.xz nova-65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b.zip | |
cast execute commands to str
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py b/plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py index 93aed2986..48122e6d6 100755 --- a/plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py +++ b/plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py @@ -54,6 +54,7 @@ def main(dom_id, command, only_this_vif=None): def execute(*command, return_stdout=False): devnull = open(os.devnull, 'w') + command = map(str, command) proc = subprocess.Popen(command, close_fds=True, stdout=subprocess.PIPE, stderr=devnull) devnull.close() |
