From 26cba926b50bcd212d940953fc872a609ab95c53 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 26 Sep 2019 09:12:41 +0200 Subject: [PATCH] fix hp oneview --- hardware/server/hp/oneview/restapi/custom/api.pm | 1 + storage/hp/p2000/xmlapi/mode/vdisks.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hardware/server/hp/oneview/restapi/custom/api.pm b/hardware/server/hp/oneview/restapi/custom/api.pm index 456049b09..316e16c79 100644 --- a/hardware/server/hp/oneview/restapi/custom/api.pm +++ b/hardware/server/hp/oneview/restapi/custom/api.pm @@ -200,6 +200,7 @@ sub authenticate { } $self->{session_id} = $session_id; + $self->{http}->add_header(key => 'Auth', value => $self->{session_id}); } sub request_api { diff --git a/storage/hp/p2000/xmlapi/mode/vdisks.pm b/storage/hp/p2000/xmlapi/mode/vdisks.pm index 6ea76e264..93e0024d5 100644 --- a/storage/hp/p2000/xmlapi/mode/vdisks.pm +++ b/storage/hp/p2000/xmlapi/mode/vdisks.pm @@ -132,7 +132,7 @@ sub manage_selection { no_quit => 1, ); if ($code == 0) { - ($results) = $self->{custom}->get_infos( + ($result) = $options{custom}->get_infos( cmd => 'show disk-groups', base_type => 'disk-groups', key => 'name',