enh(azure/aks): change mode names (#3355)
This commit is contained in:
parent
20f5d90449
commit
71c1ebbe5b
|
@ -25,22 +25,22 @@ use warnings;
|
||||||
use base qw(centreon::plugins::script_custom);
|
use base qw(centreon::plugins::script_custom);
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ( $class, %options ) = @_;
|
my ($class, %options) = @_;
|
||||||
my $self = $class->SUPER::new( package => __PACKAGE__, %options );
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
%{ $self->{modes} } = (
|
$self->{modes} = {
|
||||||
'allocatableresources' => 'cloud::azure::compute::aks::mode::allocatableresources',
|
'allocatable-resources' => 'cloud::azure::compute::aks::mode::allocatableresources',
|
||||||
'cpu' => 'cloud::azure::compute::aks::mode::cpu',
|
'cpu' => 'cloud::azure::compute::aks::mode::cpu',
|
||||||
'discovery' => 'cloud::azure::compute::aks::mode::discovery',
|
'discovery' => 'cloud::azure::compute::aks::mode::discovery',
|
||||||
'storage' => 'cloud::azure::compute::aks::mode::storage',
|
'storage' => 'cloud::azure::compute::aks::mode::storage',
|
||||||
'traffic' => 'cloud::azure::compute::aks::mode::traffic',
|
'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}->{azcli} = 'cloud::azure::custom::azcli';
|
||||||
$self->{custom_modes}{api} = 'cloud::azure::custom::api';
|
$self->{custom_modes}->{api} = 'cloud::azure::custom::api';
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue