enh(azure/aks): change mode names (#3355)

This commit is contained in:
qgarnier 2021-12-30 16:25:21 +01:00 committed by GitHub
parent 848f6c2c86
commit 0b9a370dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -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;
}