cli: set needs_user_terminal for all ssh commands
This commit is contained in:
@@ -157,7 +157,7 @@ def generate_machine_hardware_info(opts: HardwareGenerateOptions) -> HardwareRep
|
||||
*config_command,
|
||||
],
|
||||
)
|
||||
out = run(cmd)
|
||||
out = run(cmd, needs_user_terminal=True)
|
||||
if out.returncode != 0:
|
||||
log.error(out)
|
||||
msg = f"Failed to inspect {opts.machine}. Address: {opts.target_host}"
|
||||
|
||||
@@ -121,7 +121,7 @@ def check_machine_online(
|
||||
],
|
||||
)
|
||||
try:
|
||||
proc = run_no_stdout(cmd)
|
||||
proc = run_no_stdout(cmd, needs_user_terminal=True)
|
||||
if proc.returncode != 0:
|
||||
return "Offline"
|
||||
except ClanCmdError:
|
||||
|
||||
Reference in New Issue
Block a user