Skip to content

Commit

Permalink
Fix config debug var name to avoid flask conflicts
Browse files Browse the repository at this point in the history
Bump version to 0.5.1
  • Loading branch information
davidlougheed committed Apr 22, 2021
1 parent 6738b5d commit 68f0bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bento_service_registry/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

application = Flask(__name__)
application.config.from_mapping(
DEBUG=os.environ.get("CHORD_DEBUG", os.environ.get("FLASK_ENV", "production")).strip().lower() in (
BENTO_DEBUG=os.environ.get("CHORD_DEBUG", os.environ.get("FLASK_ENV", "production")).strip().lower() in (
"true", "1", "development"),
CHORD_SERVICES=os.environ.get("CHORD_SERVICES", os.environ.get("BENTO_SERVICES", "chord_services.json")),
CHORD_URL=os.environ.get("CHORD_URL", os.environ.get("BENTO_URL", "http://127.0.0.1:5000/")), # Own node's URL
Expand Down Expand Up @@ -85,7 +85,7 @@ def get_service(service_artifact):
service_info_url,
headers={"Authorization": auth_header} if auth_header else {},
timeout=current_app.config["CONTACT_TIMEOUT"],
verify=not current_app.config["DEBUG"],
verify=not current_app.config["BENTO_DEBUG"],
)

if r.status_code != 200:
Expand Down
2 changes: 1 addition & 1 deletion bento_service_registry/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = bento_service_registry
version = 0.5.0
version = 0.5.1
authors = David Lougheed
author_emails = [email protected]

0 comments on commit 68f0bf7

Please sign in to comment.