fix list asm-diskgroup
This commit is contained in:
parent
f28d6c76d0
commit
dc90d5e97c
|
@ -51,8 +51,12 @@ sub manage_selection {
|
||||||
SELECT name, state, type FROM V$ASM_DISKGROUP
|
SELECT name, state, type FROM V$ASM_DISKGROUP
|
||||||
});
|
});
|
||||||
$self->{list_dg} = {};
|
$self->{list_dg} = {};
|
||||||
while ((my $row = $self->{sql}->fetchrow_hashref())) {
|
my $result = $self->{sql}->fetchall_arrayref();
|
||||||
$self->{list_dg}->{$row->{name}} = { %$row };
|
foreach my $row (@$result) {
|
||||||
|
$self->{list_dg}->{$row->[0]} = {
|
||||||
|
state => $row->[1],
|
||||||
|
type => $row->[2],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue