cli: set needs_user_terminal for all ssh commands

This commit is contained in:
DavHau
2024-10-23 19:40:31 +07:00
parent 9aa69cf28e
commit db0fdba384
6 changed files with 14 additions and 4 deletions

View File

@@ -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}"