]> git.proxmox.com Git - pve-storage.git/commitdiff
add return schema to smart API path
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 3 Oct 2016 11:53:36 +0000 (13:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Oct 2016 08:34:47 +0000 (10:34 +0200)
PVE/API2/Disks.pm

index 3be68735e2d1c8cdfa692f560054433b6f0c1b1f..208485f6ab465b51892f3c7cf10be32ba2af425f 100644 (file)
@@ -124,7 +124,15 @@ __PACKAGE__->register_method ({
            },
        },
     },
            },
        },
     },
-    returns => { type => 'object' },
+    returns => {
+       type => 'object',
+       properties => {
+           health => { type => 'string' },
+           type => { type => 'string', optional => 1 },
+           attributes => { type => 'array', optional => 1},
+           text => { type => 'string', optional => 1 },
+       },
+    },
     code => sub {
        my ($param) = @_;
 
     code => sub {
        my ($param) = @_;