lib.ec.ssh.Exec._run_ssh(): Fix: interactive ignored

Exec's _run_ssh() ignores its "interactive" parameter and uses the
instances' default instead, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-17 17:49:53 +02:00
commit f253466a3f

View file

@ -55,7 +55,7 @@ class Exec(Base):
) -> Result:
self.__init_askpass()
if cmd_input is None:
cmd_input = InputMode.Interactive if self.interactive else InputMode.NonInteractive
cmd_input = InputMode.Interactive if interactive else InputMode.NonInteractive
opts: dict[str, str] = []
if env:
for key, val in env.items():