Merge "Fix #27 - salt 2018.3 yaml dump to overrides.yml"
diff --git a/_modules/reclass.py b/_modules/reclass.py
index 3c06da1..a2d79bd 100644
--- a/_modules/reclass.py
+++ b/_modules/reclass.py
@@ -844,7 +844,7 @@
         del metadata[name]
         try:
             with io.open(path, 'w') as file_handle:
-                file_handle.write(unicode(yaml.dump(meta, default_flow_style=False)))
+                file_handle.write(unicode(yaml.safe_dump(meta, default_flow_style=False)))
         except Exception as e:
             msg = "Unable to save cluster metadata YAML: %s" % repr(e)
             LOG.error(msg)
@@ -878,7 +878,7 @@
         metadata.update({name: value})
         try:
             with io.open(path, 'w') as file_handle:
-                file_handle.write(unicode(yaml.dump(meta, default_flow_style=False)))
+                file_handle.write(unicode(yaml.safe_dump(meta, default_flow_style=False)))
         except Exception as e:
             msg = "Unable to save cluster metadata YAML %s: %s" % (path, repr(e))
             LOG.error(msg)