Add filter plugins
This commit is contained in:
12
plays/filter_plugins/update_env.py
Normal file
12
plays/filter_plugins/update_env.py
Normal file
@ -0,0 +1,12 @@
|
||||
"""Update config.env filter."""
|
||||
|
||||
|
||||
def filter_update_env(config, env):
|
||||
for key, val in env:
|
||||
config["env"][key] = val
|
||||
return config
|
||||
|
||||
|
||||
class FilterModule(object):
|
||||
def filters(self):
|
||||
return {"update_env": filter_update_env}
|
Reference in New Issue
Block a user