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; } }