[pve-devel] [PATCH v2 guest-common 7/7] storage tunnel: use pve-storage-image-format standard option
Fiona Ebner
f.ebner at proxmox.com
Wed Mar 5 11:49:23 CET 2025
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
src/PVE/StorageTunnel.pm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/PVE/StorageTunnel.pm b/src/PVE/StorageTunnel.pm
index c880889..c0cc0ae 100644
--- a/src/PVE/StorageTunnel.pm
+++ b/src/PVE/StorageTunnel.pm
@@ -7,7 +7,9 @@ use IO::Socket::UNIX;
use POSIX qw(WNOHANG);
use Socket qw(SOCK_STREAM);
+use PVE::JSONSchema;
use PVE::Storage;
+use PVE::Storage::Common; # for pve-storage-image-format standard option
use PVE::Tools;
use PVE::Tunnel;
@@ -153,11 +155,9 @@ our $cmd_schema = {
type => 'string',
description => 'volume name to use as preferred target volume name',
},
- format => {
- type => 'string',
- format => 'pve-storage-format',
+ format => PVE::JSONSchema::get_standard_option('pve-storage-image-format', {
description => 'preferred format for the target volume',
- },
+ }),
export_formats => {
type => 'string',
description => 'list of supported export formats',
--
2.39.5
More information about the pve-devel
mailing list