Before this patch yaml.Loader was used by the engine to create custom
yaql-enabled yaml loader. It is unsafe do to so, because yaml.Loader is
capable of creating custom python objects from specifically constructed
yaml files.
After this patch all yaml load operations are performed with safe
loaders instead.
Also use SafeConstructor instead of Constructor.
Reviewed: https:/ /review. openstack. org/333425 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=355513fe2e8 c929f783de1109b ee76c340cedced
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 355513fe2e8c929 f783de1109bee76 c340cedced
Author: Kirill Zaitsev <email address hidden>
Date: Fri May 27 00:42:38 2016 +0300
Use SafeLoader to load yaml files
Before this patch yaml.Loader was used by the engine to create custom
yaql-enabled yaml loader. It is unsafe do to so, because yaml.Loader is
capable of creating custom python objects from specifically constructed
yaml files.
After this patch all yaml load operations are performed with safe
loaders instead.
Also use SafeConstructor instead of Constructor.
Change-Id: I61a3c42d73608b 5d013285f015a45 f4774d264e3
Closes-Bug: #1586079