From e1bf005f03682b0ea066ac17d4877695a8aa2ff9 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 26 Feb 2021 11:36:30 +0100 Subject: [PATCH] some fix on gcp --- centreon-plugins/cloud/google/gcp/custom/api.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/cloud/google/gcp/custom/api.pm b/centreon-plugins/cloud/google/gcp/custom/api.pm index 684bf5819..3cd9edb25 100644 --- a/centreon-plugins/cloud/google/gcp/custom/api.pm +++ b/centreon-plugins/cloud/google/gcp/custom/api.pm @@ -380,8 +380,8 @@ sub request_api_paginate { my ($self, %options) = @_; my $items = []; - my $get_param; - $get_param = $options{get_param} if (defined$options{get_param}); + my $get_param = []; + $get_param = $options{get_param} if (defined($options{get_param})); while (1) { my $response = $self->request_api( method => 'GET',