From ca0234bb0e9fbcfd7b428b71114ef136042d8b95 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 4 Feb 2021 16:27:39 +0100 Subject: [PATCH] fix gcp get-metrics mode --- cloud/google/gcp/management/stackdriver/mode/getmetrics.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm b/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm index ce6b9e97b..5674807a7 100644 --- a/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm +++ b/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm @@ -157,7 +157,7 @@ sub check_options { } $self->{gcp_aggregations} = ['average']; if (scalar(@$aggregations) > 0) { - $self->{gcp_aggregations} = @$aggregations; + $self->{gcp_aggregations} = $aggregations; } }