Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dogshell] use env vars for api_key and app_key #228

Merged
merged 1 commit into from
Oct 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions datadog/dogshell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def main():
default=os.path.expanduser('~/.dogrc'))
parser.add_argument('--api-key', help="your API key, from "
"https://app.datadoghq.com/account/settings#api",
dest='api_key', default=None)
dest='api_key', default=os.environ.get('DATADOG_API_KEY'))
parser.add_argument('--application-key', help="your Application key, from "
"https://app.datadoghq.com/account/settings#api",
dest='app_key', default=None)
dest='app_key', default=os.environ.get('DATADOG_APP_KEY'))
parser.add_argument('--pretty', help="pretty-print output (suitable for human consumption, "
"less useful for scripting)", dest='format',
action='store_const', const='pretty')
Expand Down