From 37c265fa0f62de9986c1d427b9411df883e7fcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duret?= Date: Wed, 11 Jan 2023 14:36:20 +0100 Subject: [PATCH] (plugin) cloud::azure::database::sqldatabase::plugin - fix health resource type (#4133) --- .../cloud/azure/database/sqldatabase/mode/health.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/cloud/azure/database/sqldatabase/mode/health.pm b/centreon-plugins/cloud/azure/database/sqldatabase/mode/health.pm index 3c83ce962..eac17463e 100644 --- a/centreon-plugins/cloud/azure/database/sqldatabase/mode/health.pm +++ b/centreon-plugins/cloud/azure/database/sqldatabase/mode/health.pm @@ -29,8 +29,8 @@ sub check_options { my ($self, %options) = @_; $self->SUPER::check_options(%options); - $self->{az_resource_namespace} = 'Microsoft.Sql'; - $self->{az_resource_type} = 'servers/databases'; + $self->{az_resource_namespace} = 'Microsoft.Sql' if (!defined($self->{az_resource_namespace}) || $self->{az_resource_namespace} eq ''); + $self->{az_resource_type} = 'servers/databases' if (!defined($self->{az_resource_type}) || $self->{az_resource_type} eq ''); } 1;