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