From 71c1ebbe5bed6adb13552cbea0d30d3d2855481c Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 30 Dec 2021 16:25:21 +0100 Subject: [PATCH] enh(azure/aks): change mode names (#3355) --- .../cloud/azure/compute/aks/plugin.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/centreon-plugins/cloud/azure/compute/aks/plugin.pm b/centreon-plugins/cloud/azure/compute/aks/plugin.pm index 41b79ba2a..c11417c2a 100644 --- a/centreon-plugins/cloud/azure/compute/aks/plugin.pm +++ b/centreon-plugins/cloud/azure/compute/aks/plugin.pm @@ -25,22 +25,22 @@ use warnings; use base qw(centreon::plugins::script_custom); sub new { - my ( $class, %options ) = @_; - my $self = $class->SUPER::new( package => __PACKAGE__, %options ); + my ($class, %options) = @_; + my $self = $class->SUPER::new(package => __PACKAGE__, %options); bless $self, $class; $self->{version} = '0.1'; - %{ $self->{modes} } = ( - 'allocatableresources' => 'cloud::azure::compute::aks::mode::allocatableresources', + $self->{modes} = { + 'allocatable-resources' => 'cloud::azure::compute::aks::mode::allocatableresources', 'cpu' => 'cloud::azure::compute::aks::mode::cpu', 'discovery' => 'cloud::azure::compute::aks::mode::discovery', 'storage' => 'cloud::azure::compute::aks::mode::storage', 'traffic' => 'cloud::azure::compute::aks::mode::traffic', - 'unneedednodes' => 'cloud::azure::compute::aks::mode::unneedednodes' - ); + 'unneeded-nodes' => 'cloud::azure::compute::aks::mode::unneedednodes' + }; - $self->{custom_modes}{azcli} = 'cloud::azure::custom::azcli'; - $self->{custom_modes}{api} = 'cloud::azure::custom::api'; + $self->{custom_modes}->{azcli} = 'cloud::azure::custom::azcli'; + $self->{custom_modes}->{api} = 'cloud::azure::custom::api'; return $self; }