mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-12 19:07:24 +00:00
docker_container: fix env_file option (#452)
* Add better tests for env and env_file. * Make sure that non-container options are also passed to preprocessing code. * Add changelog fragment. * Add env_file override test.
This commit is contained in:
@@ -258,7 +258,7 @@ class ContainerManager(DockerBaseClass):
|
||||
for options in active_options:
|
||||
values = {}
|
||||
engine = options.get_engine(self.engine_driver.name)
|
||||
for option in options.options:
|
||||
for option in options.all_options:
|
||||
if not option.not_an_ansible_option and self.module.params[option.name] is not None:
|
||||
values[option.name] = self.module.params[option.name]
|
||||
values = options.preprocess(self.module, values)
|
||||
|
||||
Reference in New Issue
Block a user