mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-26 01:15:48 +03:00
[GH-ISSUE #53] inverted commas in example #50
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#50
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 @romanshein on GitHub (Sep 19, 2021).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/53
Generated following the example:
cv4pve-autosnap --host=192.168.1.230 --username=root@pam --password=XXXXXX --vmid=500 snap --label='daily' --keep=2 at Windows machine.
The result is as follows:
ACTION Snap
VMs: 500
Label: 'daily'
Keep: 2
State: False
Timeout: 30000
Timestamp format: yyMMddHHmmss
----- VM 500 Qemu -----
Create snapshot: auto'daily'210919215747
snapname : invalid format - invalid configuration ID 'auto'daily'210919215747'
The removal of ' (inverted commas) solved the problem. I suggest to edit the sample script by removing the inverted commas.
The inverted commas are redundant. The commas are useful for the phrases containing spaces, yet it is unlikely that Proxmox would be ok with the snapshot names with spaces anyway. Even if it does, it is still not a good idea to put spaces into the snapshot name, so it should be discouraged.