From a95e3c8025110b613b8846bd53cb9a25c2572ad2 Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Fri, 9 Sep 2022 09:29:23 +0200 Subject: [PATCH] (plugin) cloud::azure::management::costs - Fix disco_* subs (#3890) --- .../cloud/azure/management/costs/mode/listbudgets.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/cloud/azure/management/costs/mode/listbudgets.pm b/centreon-plugins/cloud/azure/management/costs/mode/listbudgets.pm index 82ca5e2ec..a43411b24 100644 --- a/centreon-plugins/cloud/azure/management/costs/mode/listbudgets.pm +++ b/centreon-plugins/cloud/azure/management/costs/mode/listbudgets.pm @@ -52,7 +52,7 @@ sub run { my ($self, %options) = @_; $self->manage_selection(%options); - foreach my $budget (@{$self->{budget}->{value}) { + foreach my $budget (@{$self->{budget}->{value}}) { $self->{output}->output_add( long_msg => sprintf("[budget = %s][category = %s][amount = %s][timegrain = %s][id = %s]", $budget->{name}, $budget->{properties}->{category}, $budget->{properties}->{amount}, $budget->{properties}->{timeGrain}, $budget->{id}) @@ -77,7 +77,7 @@ sub disco_show { my ($self, %options) = @_; $self->manage_selection(%options); - foreach my $budget (@{$self->{budget}->value}) { + foreach my $budget (@{$self->{budget}->{value}}) { $self->{output}->add_disco_entry( name => $budget->{name}, category => $budget->{properties}->{category}, @@ -100,4 +100,4 @@ List Azure budgets. =back -=cut \ No newline at end of file +=cut