Fix wsgi host param.

This commit is contained in:
Joachim Desroches 2022-09-29 10:23:34 +02:00
parent 81c9288e96
commit f01e70dff8
No known key found for this signature in database
GPG key ID: 6778C9C29C02D691

View file

@ -27,7 +27,7 @@ if __name__ == '__main__':
"Remaining days before Odoo license expiration") "Remaining days before Odoo license expiration")
# Serve metrics over HTTP # Serve metrics over HTTP
start_http_server(host=HTTP_HOST, port=HTTP_PORT) start_http_server(addr=HTTP_HOST, port=HTTP_PORT)
# Open connection # Open connection
with psycopg2.connect(database=DBNAME, user=USER) as conn: with psycopg2.connect(database=DBNAME, user=USER) as conn: