Use yaml.safe_load instead of yaml.load

Fixing some places where it should be possible to use yaml.safe_load.
These issues were found by the automated code scanner (Bandit):
https://ci.fuel-infra.org/job/bandit-security-check/3892/console

Change-Id: I4a042669a1f920cb46433f1eca63c2c7ecd20763
This commit is contained in:
Kiran_totad 2017-07-24 15:06:02 +05:30
parent 9ce573ef4c
commit 2ddc3f324c
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class RunnerEngine(object):
self.runner = runner
with open(yaml_path) as f:
data = yaml.load(f)
data = yaml.safe_load(f)
self._parse_data(data)
def _validate_task(self, task):