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.CDumper, default_flow_style=False)
+
+ print yaml.dump(merged, Dumper=yaml.CSafeDumper, default_flow_style=False)
if __name__ == '__main__':
main(sys.argv)
-# vim:et:sw=2:ts=4
+# vim:et:sw=4:ts=4