diff options
| author | Paul Bourke <paul.bourke@oracle.com> | 2016-08-11 09:48:21 +0000 |
|---|---|---|
| committer | Dave Walker <email@daviey.com> | 2016-08-28 08:52:44 +0000 |
| commit | fc30d583f99870b142407b4631f4194c0557c5a5 (patch) | |
| tree | 5add96c4864c59b268e5fab0c5367439e53ee147 /tools/validate-yaml.py | |
| parent | f2a2b69c6a73f3eb342c1d05ec984e11be5e0dfa (diff) | |
| download | kolla-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-x | tools/validate-yaml.py | 2 |
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', |
