Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit bfe0e49

Browse files
authored
Merge pull request #40 from helgi/patch-1
Support NEW_RELIC_LICENSE_KEY
2 parents 7a70149 + 3765ff5 commit bfe0e49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

newrelic_python_agent/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ def license_key(self):
108108
:rtype: str
109109
110110
"""
111-
licensekey = os.getenv('NEWRELIC_LICENSE_KEY')
111+
licensekey = os.getenv('NEW_RELIC_LICENSE_KEY')
112112
if licensekey is None:
113-
licensekey = self.config.application.license_key
113+
licensekey = os.getenv('NEWRELIC_LICENSE_KEY')
114+
if licensekey is None:
115+
licensekey = self.config.application.license_key
114116
return licensekey
115117

116118
def get_instance_name(self, plugin_name, instance):

0 commit comments

Comments
 (0)