summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEric Windisch <eric@cloudscaling.com>2011-03-11 12:09:20 -0500
committerEric Windisch <eric@cloudscaling.com>2011-03-11 12:09:20 -0500
commit65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b (patch)
tree33b20c099588370ece08843e407a908ac844d82b /plugins
parent2379fc056d96d56c852e94fe7c3898049a3670bc (diff)
downloadnova-65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b.tar.gz
nova-65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b.tar.xz
nova-65f6648f61cb6eeb5cd109fe08ef2ab2f3646c8b.zip
cast execute commands to str
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/xenserver/networking/etc/xensource/scripts/vif_rules.py1
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()