Use eval instead of yaml loading the pprint output

Since the YAML renderer no longer supports this, we can't use it to load
structures with unicode literal strings within them.
This commit is contained in:
Erik Johnson 2018-06-26 21:23:48 -05:00
parent 01ec96fdf5
commit 5bf0e26fad
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -84,7 +84,7 @@ class CopyTest(ShellCase, ShellCaseCommonTestsMixin):
pipes.quote(minion_testfile)
))
data = salt.utils.yaml.safe_load('\n'.join(ret))
data = eval('\n'.join(ret), {}, {})
for part in six.itervalues(data):
self.assertTrue(part[minion_testfile])