Merge pull request #4242 from dokku/remove-whitelist-word

Remove reference to 'whitelist'
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2020-12-13 21:58:37 -05:00
commit 5f2968d1b0
1 file changed
+3 -3
@@ -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: