make remote_cmd a new list

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-09 14:56:51 +02:00
parent f21ce6a0db
commit 2c15069d96

View file

@ -344,9 +344,7 @@ class Cdist:
explorers = self.list_type_explorers(type) explorers = self.list_type_explorers(type)
for explorer in explorers: for explorer in explorers:
# THIS IS A BUG, because remote_cmd is NOT a copy remote_cmd = cmd + os.path.join(self.remote_type_explorer_dir(type), explorer)
remote_cmd = cmd
remote_cmd.append(os.path.join(self.remote_type_explorer_dir(type), explorer))
output = os.path.join(self.type_explorer_output_dir(cdist_object), explorer) output = os.path.join(self.type_explorer_output_dir(cdist_object), explorer)
output_fd = open(output, mode='w') output_fd = open(output, mode='w')