use yaml.CSafeDumper and yaml.CSafeLoader everywhere
[invirt/packages/invirt-base.git] / files / usr / sbin / invirt-getconf
index 1976dbc..06c0aa7 100755 (executable)
@@ -79,7 +79,8 @@ def main(argv):
                 print conf
             else:
                 import yaml
-                yaml.safe_dump(conf, stdout, default_flow_style=False)
+                yaml.dump(conf, stdout,
+                          Dumper=yaml.CSafeDumper, default_flow_style=False)
     except invirt_exception, ex:
         print >> stderr, ex
         return 1