mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 03:46:55 +00:00
Fix crashes due to wrong names. (#1161)
This commit is contained in:
@@ -353,7 +353,7 @@ class Connection(ConnectionBase):
|
||||
actual_user = self._get_docker_remote_user()
|
||||
if actual_user != self.get_option("remote_user"):
|
||||
display.warning(
|
||||
f'docker {self.docker_version} does not support remote_user, using container default: {self.actual_user or "?"}'
|
||||
f'docker {self.docker_version} does not support remote_user, using container default: {actual_user or "?"}'
|
||||
)
|
||||
return actual_user
|
||||
elif self._display.verbosity > 2:
|
||||
|
||||
@@ -200,7 +200,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"
|
||||
|
||||
@@ -286,7 +286,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