wrong dict

This commit is contained in:
cupcakearmy 2019-05-25 16:50:19 +02:00
parent 4a37a08ea3
commit 60feea3775

View File

@ -57,7 +57,7 @@ def main():
if envsraw is not None: if envsraw is not None:
prefix = 'PLUGIN_' prefix = 'PLUGIN_'
# Take only the envs that start with PLUGIN_ and remore the prefix # Take only the envs that start with PLUGIN_ and remore the prefix
envs = {k[len(prefix):]:v for k, v in a.items() if k.startswith(prefix)} envs = {k[len(prefix):]:v for k, v in os.environ.items() if k.startswith(prefix)}
if 'all' != envsraw or ',' in envsraw: if 'all' != envsraw or ',' in envsraw:
# Make them uppercase # Make them uppercase