Merge "Allow mod_wsgi to find application"

This commit is contained in:
Zuul 2018-08-06 14:18:19 +00:00 committed by Gerrit Code Review
commit d7ac081c06
1 changed files with 1 additions and 1 deletions

View File

@ -21,5 +21,5 @@ from monasca_api.api import server
def main():
return server.get_wsgi_app(config_base_path='/etc/monasca')
if __name__ == '__main__':
if __name__ == '__main__' or __name__.startswith('_mod_wsgi'):
application = main()