Fix call to config dictionary from pvc_api

This commit is contained in:
Joshua Boniface 2020-02-20 15:11:20 -05:00
parent 57768f2583
commit 31a117e21c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ if pvc_api.config['debug']:
# Run in Flask standard mode # Run in Flask standard mode
pvc_api.app.run(pvc_api.config['listen_address'], pvc_api.config['listen_port']) pvc_api.app.run(pvc_api.config['listen_address'], pvc_api.config['listen_port'])
else: else:
if config['ssl_enabled']: if pvc_api.config['ssl_enabled']:
# Run the WSGI server with SSL # Run the WSGI server with SSL
http_server = gevent.pywsgi.WSGIServer( http_server = gevent.pywsgi.WSGIServer(
(pvc_api.config['listen_address'], pvc_api.config['listen_port']), (pvc_api.config['listen_address'], pvc_api.config['listen_port']),