From 98d5b8cb7262d778a47e85a94d32858ef53a6724 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 21 Mar 2019 12:48:54 +0100 Subject: [PATCH] JSONSchema: register 'pve-snapshot-name' here to avoid cyclic dependencies move it from qemu-server as it was also used in pve-container and pve-manager (pvesr), while guest-commons AbstractConfig could be a fit too, just move it here as all depending on this already use JSONSchema and it just fits here... Break respective qemu-server version Signed-off-by: Thomas Lamprecht --- debian/control | 2 +- src/PVE/JSONSchema.pm | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index c895f6f..5b1ac2e 100644 --- a/debian/control +++ b/debian/control @@ -36,6 +36,6 @@ Depends: libclone-perl, Breaks: pmg-api (<< 5.0-74), pve-container (<< 1.0-93), pve-manager (<< 5.2-5), - qemu-server (<< 5.0-42), + qemu-server (<< 5.0-49), Description: Proxmox VE base library This package contains the base library used by other Proxmox VE components. diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 377d686..f0fc2aa 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -113,6 +113,12 @@ register_standard_option('pve-output-format', { default => 'text', }); +register_standard_option('pve-snapshot-name', { + description => "The name of the snapshot.", + type => 'string', format => 'pve-configid', + maxLength => 40, +}); + my $format_list = {}; sub register_format { -- 2.39.2