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)
|
data = json.load(sys.stdin)
|
||||||
for container in data:
|
for container in data:
|
||||||
env = []
|
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']:
|
for e in container['Config']['Env']:
|
||||||
append = False
|
append = False
|
||||||
for w in whitelist:
|
for s in allowed_prefixes:
|
||||||
if e.startswith(w):
|
if e.startswith(s):
|
||||||
append = True
|
append = True
|
||||||
break
|
break
|
||||||
if append:
|
if append:
|
||||||
|
|||||||
Reference in New Issue
Block a user