From 5f751570c2d8714dd07c345c0fdfbd115f0107e6 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 3 Apr 2020 15:30:51 +0200 Subject: [PATCH] add endpoint in access token azure --- centreon-plugins/cloud/azure/custom/api.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centreon-plugins/cloud/azure/custom/api.pm b/centreon-plugins/cloud/azure/custom/api.pm index 5bfa01459..6fb27744e 100644 --- a/centreon-plugins/cloud/azure/custom/api.pm +++ b/centreon-plugins/cloud/azure/custom/api.pm @@ -167,7 +167,8 @@ sub get_access_token { 'azure_api_' . md5_hex($self->{subscription}) . '_' . md5_hex($self->{tenant}) . '_' . - md5_hex($self->{client_id}) + md5_hex($self->{client_id}) . '_' . + md5_hex($self->{management_endpoint}) ); my $expires_on = $options{statefile}->get(name => 'expires_on'); my $access_token = $options{statefile}->get(name => 'access_token');