mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 15:16:01 +03:00
[GH-ISSUE #83] PUT do not… put the data in the body #44
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#44
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?
Originally created by @RaitoBezarius on GitHub (Dec 29, 2021).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/83
I am trying to
PUTsome configuration using Proxmox API using:I'm getting this:
I assume this is due to https://stackoverflow.com/questions/11832639/how-to-specify-python-requests-http-put-body which tries to put the
dataas a query string, it might be fixed by usingjson=instead ofdata=for PUT requests.@RaitoBezarius commented on GitHub (Dec 29, 2021):
I'm always confused by how to use
.post/.put:P, but right,instance.config.put(**{'cores': 6})is the way to go. Sorry for the issue.@jhollowe commented on GitHub (Dec 29, 2021):
yes, the data needs to be parameters to the function rather than a single dict.