mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-14 03:40:33 +00:00
(cherry picked from commit33c8a49191) (cherry picked from commitb058cd40da) Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -199,7 +199,7 @@ class ExecManager(BaseComposeManager):
|
||||
self.argv = shlex.split(parameters['command'])
|
||||
|
||||
if self.detach and self.stdin is not None:
|
||||
self.mail('If detach=true, stdin cannot be provided.')
|
||||
self.fail('If detach=true, stdin cannot be provided.')
|
||||
|
||||
if self.stdin is not None and parameters['stdin_add_newline']:
|
||||
self.stdin += '\n'
|
||||
|
||||
@@ -283,7 +283,7 @@ class ExecManager(BaseComposeManager):
|
||||
self.argv = shlex.split(parameters['command'])
|
||||
|
||||
if self.detach and self.stdin is not None:
|
||||
self.mail('If detach=true, stdin cannot be provided.')
|
||||
self.fail('If detach=true, stdin cannot be provided.')
|
||||
|
||||
if self.stdin is not None and parameters['stdin_add_newline']:
|
||||
self.stdin += '\n'
|
||||
|
||||
Reference in New Issue
Block a user