Add bandit in tox -e pep8
Add bandit tox environment and amend pep8 env to run it. Also, fix bandit errors with "0.0.0.0". Change-Id: Ieb5785abd945663e07c07f0ddd3d9a074004f46a Closes-Bug: #1594423
This commit is contained in:
@@ -38,8 +38,8 @@ def main():
|
||||
server = service.WSGIService(
|
||||
'watcher-api', CONF.api.enable_ssl_api)
|
||||
|
||||
if host == '0.0.0.0':
|
||||
LOG.info(_LI('serving on 0.0.0.0:%(port)s, '
|
||||
if host == '127.0.0.1':
|
||||
LOG.info(_LI('serving on 127.0.0.1:%(port)s, '
|
||||
'view at %(protocol)s://127.0.0.1:%(port)s') %
|
||||
dict(protocol=protocol, port=port))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user