[PVE-User] pvesh set config description multiline - any hint ?
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Dec 20 13:32:39 CET 2016
On 12/20/2016 01:21 PM, IMMO WETZEL wrote:
> How can I set multiline config descriptions ?
>
> root at node01:~# pvesh set /nodes/node04/qemu/315/config -description "line1\nline2"
>
> è Description shows a n not a line break
>
> è update VM 315: -description line1nline2
>
> è 200 OK
>
>
> root at node01:~# pvesh set /nodes/node04/qemu/315/config -description "line1 \n line2"
>
> è 400 too many arguments
>
> root at node01:~# pvesh set /nodes/node04/qemu/315/config -description "line1 \\n line2"
>
> è Description shows a \n not a line break
>
> è update VM 315: -description line1\nline2
>
> è 200 OK
>
> Some with single quotes
The description parameter is url-encoded, see
https://en.wikipedia.org/wiki/Percent-encoding
pvesh set /nodes/node04/qemu/315/config -description 'line1%0D%0Aline2'
produces your desired effect :)
More information about the pve-user
mailing list