[pve-devel] [PATCH pve-storage] We allow uppercase characters in snapshot names. pvesm import and export must allow uppercase characters too.

Wolfgang Link w.link at proxmox.com
Wed Aug 23 10:59:55 CEST 2017


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

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




More information about the pve-devel mailing list