summaryrefslogtreecommitdiff
path: root/tools/validate-yaml.py
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2016-08-11 09:48:21 +0000
committerDave Walker <email@daviey.com>2016-08-28 08:52:44 +0000
commitfc30d583f99870b142407b4631f4194c0557c5a5 (patch)
tree5add96c4864c59b268e5fab0c5367439e53ee147 /tools/validate-yaml.py
parentf2a2b69c6a73f3eb342c1d05ec984e11be5e0dfa (diff)
downloadkolla-fc30d583f99870b142407b4631f4194c0557c5a5.tar.gz
kolla-fc30d583f99870b142407b4631f4194c0557c5a5.zip
Fix bandit gate jobs
* Inspected each error and fixed / added nosec where appropriate. * build-swift-ring.py which was throwing sec errors is no longer used so removed it. * Removed the dev/ directory from being checked. Closes-Bug: #1617713 Change-Id: I25664cabca4137e5c9f499c1af3f5ce78b86fb56
Diffstat (limited to 'tools/validate-yaml.py')
-rwxr-xr-xtools/validate-yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py
index c4e4326d9..6df84ff07 100755
--- a/tools/validate-yaml.py
+++ b/tools/validate-yaml.py
@@ -32,7 +32,7 @@ def main():
for filename in args.input:
with open(filename) as fd:
try:
- yaml.load(fd)
+ yaml.safe_load(fd)
except yaml.error.YAMLError as error:
res = 1
logging.error('%s failed validation: %s',