fix oracle zs zfs rest api

This commit is contained in:
garnier-quentin 2019-09-25 10:39:46 +02:00
parent 2c5b827a96
commit 98f537c5cf
2 changed files with 2 additions and 1 deletions

View File

@ -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} = [{}];

View File

@ -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]",