mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Prefix environment variables with TAUTULLI_
For: https://github.com/Tautulli/Tautulli/issues/2309
This commit is contained in:
parent
27961e5282
commit
4610bf3769
1 changed files with 2 additions and 1 deletions
|
@ -501,7 +501,8 @@ class Config(object):
|
|||
|
||||
def _from_env(self, key, definition_type):
|
||||
""" Get key from environment variables, if it exists """
|
||||
val = os.environ.get(key)
|
||||
env_key = "TAUTULLI_" + key
|
||||
val = os.environ.get(env_key)
|
||||
try:
|
||||
if val:
|
||||
return definition_type(val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue