mirror of
https://github.com/PegaProx/project-pegaprox.git
synced 2026-04-25 10:05:56 +03:00
[PR #62] [MERGED] fix(ssh): guard ssh_user extraction against None api_user #100
Labels
No labels
Approved
Q2-3 2026 Development
bug
documentation
enhancement
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/project-pegaprox-PegaProx#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PegaProx/project-pegaprox/pull/62
Author: @ry-ops
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/26/2026
Merged by: @mkellermann97
Base:
main← Head:fix/ssh-user-null-fallback📝 Commits (1)
7fecfd0fix(ssh): guard ssh_user extraction against None api_user📊 Changes
1 file changed (+11 additions, -11 deletions)
View changed files
📝
pegaprox_multi_cluster.py(+11 -11)📄 Description
Summary
In 11 places the code derived the SSH username with:
If
api_userisNone(misconfigured cluster, corrupted DB row, or unexpected API response), the'@' in api_usertest raisesTypeErrorand the entire SSH operation fails with an unreadable traceback instead of a meaningful error message.Fix: Consolidate all 11 occurrences to the null-safe one-liner already used in some newer code paths:
This is functionally identical for any non-None string value and falls back to
'root'— the expected Proxmox API user — when the value is absent.Test plan
TypeError🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.