mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[PR #201] [MERGED] Add exit_code to Response from command_base and ResourceException #206
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#206
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/201
Author: @jhollowe
Created: 2/18/2025
Status: ✅ Merged
Merged: 2/18/2025
Merged by: @jhollowe
Base:
develop← Head:cmd-exit-code📝 Commits (2)
8808b69Add exit_code to Response from command_base and ResourceExceptioncf1bcdeAdjust tests for responses==0.25.5 changes📊 Changes
13 files changed (+56 additions, -27 deletions)
View changed files
📝
proxmoxer/backends/command_base.py(+5 -4)📝
proxmoxer/backends/local.py(+1 -1)📝
proxmoxer/backends/openssh.py(+1 -1)📝
proxmoxer/backends/ssh_paramiko.py(+1 -1)📝
proxmoxer/core.py(+4 -1)📝
tests/api_mock.py(+0 -3)📝
tests/test_command_base.py(+20 -8)📝
tests/test_core.py(+14 -2)📝
tests/test_https.py(+1 -1)📝
tests/test_local.py(+2 -1)📝
tests/test_openssh.py(+3 -2)📝
tests/test_paramiko.py(+3 -1)📝
tests/tools/test_tasks.py(+1 -1)📄 Description
for command-based backends (
local,ssh_paramiko,openssh), addsexit_codeproperty to the returnedResponseobject. Also adds an optionalexit_codeproperty toResourceExceptionwhich is available for command-based backend exceptions.fixes #172
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.