correct value versa
This commit is contained in:
parent
bd2c73b8a2
commit
c651172550
|
@ -298,7 +298,7 @@ sub manage_selection {
|
||||||
|
|
||||||
$self->{global} = { total => 0 };
|
$self->{global} = { total => 0 };
|
||||||
$self->{devices} = {};
|
$self->{devices} = {};
|
||||||
foreach my $device (@{$devices->{List}->{value}}) {
|
foreach my $device (@$devices) {
|
||||||
if (defined($self->{option_results}->{filter_device_name}) && $self->{option_results}->{filter_device_name} ne '' &&
|
if (defined($self->{option_results}->{filter_device_name}) && $self->{option_results}->{filter_device_name} ne '' &&
|
||||||
$device->{name} !~ /$self->{option_results}->{filter_device_name}/) {
|
$device->{name} !~ /$self->{option_results}->{filter_device_name}/) {
|
||||||
$self->{output}->output_add(long_msg => "skipping device '" . $device->{name} . "': no matching filter name.", debug => 1);
|
$self->{output}->output_add(long_msg => "skipping device '" . $device->{name} . "': no matching filter name.", debug => 1);
|
||||||
|
@ -332,7 +332,7 @@ sub manage_selection {
|
||||||
sync_status => lc($device->{'sync-status'}),
|
sync_status => lc($device->{'sync-status'}),
|
||||||
services_status => lc($device->{'services-status'}),
|
services_status => lc($device->{'services-status'}),
|
||||||
path_status => lc($device->{'path-status'}),
|
path_status => lc($device->{'path-status'}),
|
||||||
controller_status => lc($device->{'controller-status'})
|
controller_status => defined($device->{'controller-status'}) ? lc($device->{'controller-status'}) : '-'
|
||||||
},
|
},
|
||||||
device_alarms => {
|
device_alarms => {
|
||||||
display => $device->{name}
|
display => $device->{name}
|
||||||
|
|
Loading…
Reference in New Issue