Merge "xenapi: Pass string arguments to popen"

This commit is contained in:
Jenkins 2013-07-25 23:08:41 +00:00 committed by Gerrit Code Review
commit e6812fc4e6

View File

@ -169,9 +169,9 @@ def _seed(torrent_path, seed_cache_path, torrent_seed_duration,
torrent_listen_port_start, torrent_listen_port_end):
plugin_path = os.path.dirname(inspect.getabsfile(inspect.currentframe()))
seeder_path = os.path.join(plugin_path, SEEDER_PROCESS)
seed_cmd = [seeder_path, torrent_path, seed_cache_path,
seed_cmd = map(str, [seeder_path, torrent_path, seed_cache_path,
torrent_seed_duration, torrent_listen_port_start,
torrent_listen_port_end]
torrent_listen_port_end])
utils.run_command(seed_cmd)