mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[PR #86] [MERGED] Clean up SSH backends and add local backend. #168
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#168
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/proxmoxer/proxmoxer/pull/86
Author: @reitermarkus
Created: 1/31/2022
Status: ✅ Merged
Merged: 3/10/2022
Merged by: @jhollowe
Base:
develop← Head:local-backend📝 Commits (10+)
6514f57Run CI on forks, except coverage.e3560b8Don't require importing the project insetup.py.ff4627aClean up and DRY SSH backend code.1a4c382Addlocalbackend.a51fa85Add changelog entry forlocalbackend and SSH backend refactoring.3453f4dShow better error when specifyinghostwithlocalbackend.07281a1Revert "Don't require importing the project insetup.py."40e5808Fix pre-commit failuresad68721Small refactorsaff5de2Fix formatting issue for older python versions📊 Changes
16 files changed (+453 additions, -271 deletions)
View changed files
📝
.github/workflows/ci.yaml(+6 -2)📝
.vscode/settings.json(+1 -0)📝
CHANGELOG.md(+6 -0)📝
proxmoxer/backends/command_base.py(+53 -14)➕
proxmoxer/backends/local.py(+20 -0)📝
proxmoxer/backends/openssh.py(+23 -40)📝
proxmoxer/backends/ssh_paramiko.py(+15 -43)📝
proxmoxer/core.py(+15 -6)📝
setup.py(+3 -0)📝
test_requirements.txt(+1 -1)📝
tests/base/base_suite.py(+50 -56)📝
tests/https_tests.py(+1 -1)📝
tests/known_issues.json(+205 -65)➕
tests/local_tests.py(+34 -0)📝
tests/openssh_tests.py(+8 -12)📝
tests/paramiko_tests.py(+12 -31)📄 Description
Refactored and DRY'd the SSH backends and added a
localbackend as discussed in https://github.com/proxmoxer/proxmoxer/issues/76. Also improved argument handling by properly escaping shell commands passed to SSH backends sincesubprocess.Popenexpects a list of args.Closes https://github.com/proxmoxer/proxmoxer/issues/76.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.