Fix crashes due to wrong names. (#1161) (#1163) (#1164)

(cherry picked from commit 33c8a49191)
(cherry picked from commit b058cd40da)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-10-11 22:15:18 +02:00
committed by GitHub
parent 034b4200a2
commit 338b3db654
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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'
+1 -1
View File
@@ -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'