Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Fix api token env var for consistency with Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
vaidyg committed Apr 26, 2016
1 parent 439e219 commit 1817b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The following environment variables, if defined, will override any configuration

* LIBRATO_INTEGRATION - identifies the web framework for your app (django, flask or cherrypy)
* LIBRATO_USER - the username associated with your Librato account
* LIBRATO_API_TOKEN - a valid api token which has write access to Librato
* LIBRATO_TOKEN - a valid api token which has write access to Librato
* LIBRATO_APP_ID - uniquely identifies your web application and can be used to filter your curated dashboards
* LIBRATO_INSTRUMENTATION_PORT - UDP port that the bundled statsd instance will listen on
* LIBRATO_INSTRUMENTATION_LIBS - a white-space separated list of libraries to instrument
Expand Down
2 changes: 1 addition & 1 deletion librato_python_web/tools/agent_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def load_config(args=sys.argv[1:], use_env=True):
def update_config_from_env(options=None):
options = options or config_info()

for attr, var in [("user", "LIBRATO_USER"), ("api_token", "LIBRATO_API_TOKEN"),
for attr, var in [("user", "LIBRATO_USER"), ("api_token", "LIBRATO_TOKEN"),
("app_id", "LIBRATO_APP_ID"), ("integration", "LIBRATO_INTEGRATION")]:
if var in os.environ:
setattr(options, attr, os.environ[var])
Expand Down

0 comments on commit 1817b45

Please sign in to comment.