mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
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:
parent
01ec96fdf5
commit
5bf0e26fad
@ -84,7 +84,7 @@ class CopyTest(ShellCase, ShellCaseCommonTestsMixin):
|
|||||||
pipes.quote(minion_testfile)
|
pipes.quote(minion_testfile)
|
||||||
))
|
))
|
||||||
|
|
||||||
data = salt.utils.yaml.safe_load('\n'.join(ret))
|
data = eval('\n'.join(ret), {}, {})
|
||||||
for part in six.itervalues(data):
|
for part in six.itervalues(data):
|
||||||
self.assertTrue(part[minion_testfile])
|
self.assertTrue(part[minion_testfile])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user