mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #152] Update description in vm config #78
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#78
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 @areqq on GitHub (Dec 30, 2023).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/152
How to update 'description' in config?
vm = proxmox.nodes('proxmox6').qemu('101')
vm.config.update({'description': '#test\ntest2\n'})
Don't work.
@morph027 commented on GitHub (Dec 30, 2023):
Try
vm.config.post(description="#test\ntest2\n")@areqq commented on GitHub (Dec 30, 2023):
it works, thanks!
but "\n" was ignored and all text is in one line ;(
any idea how to set multiline description ?
@aznashwan commented on GitHub (Jan 11, 2024):
@areqq it looks like Proxmoxer DOES properly send newlines to the server and they do get properly saved:
Checks
The problem is that the Web UI is rendering HTML, so
\nwill basically be ignored.Solution
What we need to do is "HTML-ify" the description a bit by replacing
\nwith<br>. (HTML line break)@areqq commented on GitHub (Jan 12, 2024):
Thank you very much for your detailed explanation