1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-04-28 20:08:48 +00:00

Remove 'detach' when creating container

This commit is contained in:
Sagi Shnaidman 2020-12-20 17:29:57 +02:00 committed by Sergey
parent 6f8df336bc
commit cd652fe2ee
5 changed files with 18 additions and 0 deletions

View file

@ -1257,6 +1257,8 @@ class PodmanContainer:
self.version,
self.module,
).construct_command_from_params()
if action == 'create':
b_command.remove(b'--detach=True')
full_cmd = " ".join([self.module_params['executable']]
+ [to_native(i) for i in b_command])
self.actions.append(full_cmd)