Use yaml's safe_dump in windows ec2 tests

This commit is contained in:
Ch3LL 2018-08-21 16:15:27 -04:00
parent 134f125b96
commit 67290eaff7
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

View file

@ -121,7 +121,7 @@ class EC2Test(ShellCase):
conf = yaml.safe_load(fp)
conf[name].update(data)
with salt.utils.files.fopen(conf_path, 'w') as fp:
yaml.dump(conf, fp)
salt.utils.yaml.safe_dump(conf, fp)
def copy_file(self, name):
'''