Skip to content

Commit 685b45a

Browse files
committed
First check environment variable then configuration file
1 parent ddc907a commit 685b45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _load_conf(self):
5959
else:
6060
print "Could not load configuration, invalid file: {}".format(file_path)
6161

62-
return conf_dict.get('api_key', os.environ.get('DATADOG_API_KEY', '')), conf_dict.get('url', 'https://app.datadoghq.com')
62+
return os.environ.get('DATADOG_API_KEY', conf_dict.get('api_key', '')), conf_dict.get('url', 'https://app.datadoghq.com')
6363

6464

6565
# Send event to Datadog

0 commit comments

Comments
 (0)