mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[PR #45] [MERGED] allow passing values containg spaces and special characters when using ssh #150
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#150
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/45
Author: @mihailstoynov
Created: 1/29/2021
Status: ✅ Merged
Merged: 1/30/2021
Merged by: @jhollowe
Base:
develop← Head:quote-values-in-proxmoxbasesshsession📝 Commits (2)
1443afcallow passing values containg spaces and special characters when using ssh427883ftests fixed on quoted parameter values📊 Changes
2 files changed (+29 additions, -29 deletions)
View changed files
📝
proxmoxer/backends/base_ssh.py(+1 -1)📝
tests/base/base_ssh_suite.py(+28 -28)📄 Description
If you use ssh to connect to proxmox and want to change the password for a user and the new password is
password with space, you do:# pvesh set /access/password --password 'password with space' --userid 'user@pve'you have to surround the password with single quotes, otherwise the command fails. When using proxmoxer it fails with an obscure 400 error:
The solution is to quote the value.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.