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:
parent
6f8df336bc
commit
cd652fe2ee
5 changed files with 18 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue