This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-deploy/plays/filter_plugins/update_env.py

17 lines
314 B
Python

"""Update config.env filter."""
def filter_update_env(config, env):
if config.get("env", False) is False:
return config
for key, val in env:
config["env"][key] = val
return config
class FilterModule(object):
def filters(self):
return {"update_env": filter_update_env}