mirror of
https://github.com/dokku/dokku.git
synced 2026-08-29 10:08:53 +02:00
feat: remove reference to 'whitelist'
The term doesn't even 'make sense' in this context. 'allowed_prefixes' is a much better variable name.
This commit is contained in:
@@ -23,11 +23,11 @@ output = []
|
||||
data = json.load(sys.stdin)
|
||||
for container in data:
|
||||
env = []
|
||||
whitelist = ['CACHE_PATH=', 'DOCKER_', 'DOKKU_', 'DYNO=', 'PATH=', 'PORT=', 'USER=']
|
||||
allowed_prefixes = ['CACHE_PATH=', 'DOCKER_', 'DOKKU_', 'DYNO=', 'PATH=', 'PORT=', 'USER=']
|
||||
for e in container['Config']['Env']:
|
||||
append = False
|
||||
for w in whitelist:
|
||||
if e.startswith(w):
|
||||
for s in allowed_prefixes:
|
||||
if e.startswith(s):
|
||||
append = True
|
||||
break
|
||||
if append:
|
||||
|
||||
Reference in New Issue
Block a user