fix oracle zs zfs rest api
This commit is contained in:
parent
2c5b827a96
commit
98f537c5cf
|
@ -328,6 +328,7 @@ sub request {
|
|||
$self->set_proxy(%options);
|
||||
$self->set_extra_curl_opt(%options);
|
||||
|
||||
$self->{response_body} = '';
|
||||
$self->curl_setopt(option => $self->{constant_cb}->(name => 'CURLOPT_FILE'), parameter => \$self->{response_body});
|
||||
$self->{nheaders} = 0;
|
||||
$self->{response_headers} = [{}];
|
||||
|
|
|
@ -36,7 +36,7 @@ sub check {
|
|||
next if ($self->check_filter(section => 'chassis', instance => $instance));
|
||||
$self->{components}->{chassis}->{total}++;
|
||||
|
||||
my $status = $_->{faulted} ? 'faulted' : 'ok';
|
||||
my $status = $chassis->{faulted} ? 'faulted' : 'ok';
|
||||
$self->{output}->output_add(
|
||||
long_msg => sprintf(
|
||||
"chassis '%s' status is '%s' [instance = %s]",
|
||||
|
|
Loading…
Reference in New Issue