]> git.proxmox.com Git - pve-storage.git/commitdiff
status: add enum for file upload content type
authorLorenz Stechauner <l.stechauner@proxmox.com>
Wed, 21 Jul 2021 12:51:55 +0000 (14:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jul 2021 14:47:01 +0000 (16:47 +0200)
the addition of this enum does not change API behaviour, because
it is checked for 'iso' or 'vztmpl' aftwerwards anyway.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
PVE/API2/Storage/Status.pm

index 72fd85167c37984aee1ea618677aa3229c619896..1d87304e7b04c7a82c1b8f48ea9dfb9b2b140759 100644 (file)
@@ -378,6 +378,7 @@ __PACKAGE__->register_method ({
            content => {
                description => "Content type.",
                type => 'string', format => 'pve-storage-content',
+               enum => ['iso', 'vztmpl'],
            },
            filename => {
                description => "The name of the file to create.",