mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
Fix chdir option. (#518)
This commit is contained in:
parent
549de87ab5
commit
6ccbde9f98
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "docker_container_exec - fix ``chdir`` option which was ignored since community.docker 3.0.0 (https://github.com/ansible-collections/community.docker/issues/517, https://github.com/ansible-collections/community.docker/pull/518)."
|
||||
@ -250,6 +250,9 @@ def main():
|
||||
'Cmd': argv,
|
||||
'Env': format_environment(env) if env is not None else None,
|
||||
}
|
||||
if chdir is not None:
|
||||
data['WorkingDir'] = chdir
|
||||
|
||||
exec_data = client.post_json_to_json('/containers/{0}/exec', container, data=data)
|
||||
exec_id = exec_data['Id']
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user