This commit is contained in:
garnier-quentin 2019-09-26 09:00:06 +02:00
parent d335a55774
commit b89c36472f
1 changed files with 11 additions and 2 deletions

View File

@ -124,12 +124,21 @@ sub prefix_vdisk_output {
sub manage_selection { sub manage_selection {
my ($self, %options) = @_; my ($self, %options) = @_;
my ($result) = $options{custom}->get_infos( my ($result, $code) = $options{custom}->get_infos(
cmd => 'show vdisks', cmd => 'show vdisks',
base_type => 'virtual-disks', base_type => 'virtual-disks',
key => 'name', key => 'name',
properties_name => '^(?:health-numeric|size-numeric|freespace-numeric)$' properties_name => '^(?:health-numeric|size-numeric|freespace-numeric)$',
no_quit => 1,
); );
if ($code == 0) {
($results) = $self->{custom}->get_infos(
cmd => 'show disk-groups',
base_type => 'disk-groups',
key => 'name',
properties_name => '^(?:health-numeric|size-numeric|freespace-numeric)$',
);
}
my %health = ( my %health = (
0 => 'ok', 0 => 'ok',