mirror of
https://github.com/cupcakearmy/drone-deploy.git
synced 2024-12-22 00:06:32 +00:00
wrong dict
This commit is contained in:
parent
4a37a08ea3
commit
60feea3775
2
main.py
2
main.py
@ -57,7 +57,7 @@ def main():
|
||||
if envsraw is not None:
|
||||
prefix = 'PLUGIN_'
|
||||
# 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:
|
||||
# Make them uppercase
|
||||
|
Loading…
Reference in New Issue
Block a user