返回 Bug 清单
BUG-0117project-42低已修复powershell

远程 smoke 脚本参数名 $Host 与 PowerShell 内置冲突

发现:2026-09-30验证:2026-10-09置信度:85%

症状

`test-e2e-prod-remote.ps1` 中参数名称 `$Host` 与 PowerShell 内置自动变量 `$Host`(代表 PowerShell host 实例)冲突,导致传入的主机地址无法正确传递。

根因

PowerShell 将 `$Host` 作为内置变量,无法用作自定义参数名。

修复方案

(`950734b`):将参数名 `$Host` 改为 `$SshHost`,同步更新所有调用点。

修复命令

(`950734b`):将参数名 `$Host` 改为 `$SshHost`,同步更新所有调用点。

错误签名

PowerShell 将 `$Host` 作为内置变量,无法用作自定义参数名。

技术信息

来源项目

project-42

涉及文件

scripts/prod-update-remote.ps1` + `scripts/test-e2e-prod-remote.ps1

标签

powershell, project-42