outputs = [p.communicate()[0] for p in pipes]
for p in pipes:
if p.returncode != 0:
- raise CalledProcessError(p.returncode, cmd)
+ raise CalledProcessError(p.returncode, 'remctl')
results = [yaml.load(o, yaml.CSafeLoader) for o in outputs]
results = filter(lambda x: x is not None, results)
merged = {}
for result in results:
merged.update(result)
+
print yaml.dump(merged, Dumper=yaml.CSafeDumper, default_flow_style=False)
if __name__ == '__main__':