---
 PVE/CLI/pvesm.pm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm
index 9455595..12e68fc 100755
--- a/PVE/CLI/pvesm.pm
+++ b/PVE/CLI/pvesm.pm
@@ -183,8 +183,7 @@ __PACKAGE__->register_method ({
            base => {
                description => "Snapshot to start an incremental stream from",
                type => 'string',
-               pattern => qr/[a-z0-9_\-]{1,40}/,
-               maxLength => 40,
+               format => 'pve-base-snapshot',
                optional => 1,
            },
            snapshot => {
@@ -258,8 +257,7 @@ __PACKAGE__->register_method ({
            base => {
                description => "Base snapshot of an incremental stream",
                type => 'string',
-               pattern => qr/[a-z0-9_\-]{1,40}/,
-               maxLength => 40,
+               format => 'pve-base-snapshot',
                optional => 1,
            },
            'with-snapshots' => {
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to