prepare saving output of type explorers

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-09 08:06:16 +02:00
parent cbdb5cd05d
commit 8889e4a5b0

View file

@ -309,7 +309,12 @@ class Cdist:
remote_cmd = cmd
remote_cmd.append(os.path.join(self.remote_type_explorer_dir(type), explorer))
self.remote_run_or_fail(remote_cmd)
output = self.type_explorer_output_path(cdist_object)
output_fd = open(output, mode='w')
self.remote_run_or_fail(remote_cmd, stdout=output_fd)
output_fd.close()
def init_deploy(self):
log.info("Creating clean directory structure")