Fixes a bug in the duplicate-host check where the remote SSH check-script exited non-zero (and got misreported as "couldn't reach the node") whenever the last VM/CT scanned on the Proxmox node did not match --host -- an ordinary "no match, host is clear" outcome, not an SSH failure. The check's actual signal is its stdout, not its exit code, so the remote script now ends with an explicit exit 0.\n\n## Test plan\n- [x] bash -n scripts/create-proxmox-resource.sh\n- [ ] Operator: re-run create-proxmox-resource.sh --type lxc --host nix-cache ... against pve.sweet.home and confirm the duplicate-host check no longer false-positives as unreachable
Fixes a bug in the duplicate-host check where the remote SSH check-script exited non-zero (and got misreported as "couldn't reach the node") whenever the last VM/CT scanned on the Proxmox node did not match `--host` -- an ordinary "no match, host is clear" outcome, not an SSH failure. The check's actual signal is its stdout, not its exit code, so the remote script now ends with an explicit `exit 0`.\n\n## Test plan\n- [x] `bash -n scripts/create-proxmox-resource.sh`\n- [ ] Operator: re-run `create-proxmox-resource.sh --type lxc --host nix-cache ...` against pve.sweet.home and confirm the duplicate-host check no longer false-positives as unreachable
The remote bash script run over SSH ended with a for-loop whose last
statement was `[[ "$n" == "$target" ]] && echo ...`. When the last
VM/CT checked on the node didn't match --host, that test evaluated
false and became the exit status of the whole remote script (1) --
which the wrapper then misreported as "couldn't reach the node",
even though SSH connectivity and the check itself were both fine.
The actual signal is the script's stdout, not its exit code, so end
it with an explicit exit 0.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes a bug in the duplicate-host check where the remote SSH check-script exited non-zero (and got misreported as "couldn't reach the node") whenever the last VM/CT scanned on the Proxmox node did not match
--host-- an ordinary "no match, host is clear" outcome, not an SSH failure. The check's actual signal is its stdout, not its exit code, so the remote script now ends with an explicitexit 0.\n\n## Test plan\n- [x]bash -n scripts/create-proxmox-resource.sh\n- [ ] Operator: re-runcreate-proxmox-resource.sh --type lxc --host nix-cache ...against pve.sweet.home and confirm the duplicate-host check no longer false-positives as unreachable