(plugin) cloud::azure::* - Multiple fixes on some modes (#3883)

* Fix wrong mode name in plugin.pm

* + add space

* Fix typos
This commit is contained in:
Simon Bomm 2022-09-06 15:22:33 +02:00 committed by GitHub
parent 57434327aa
commit 9faba37088
3 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@ sub manage_selection {
}
if (!$costs || $cost < 0.01) {
$self->{output}->add_option_msg(short_msg => "Null or < 0.01 " . $budget->{properties}->{currentSpend}->{unit} . "cost found on the specified scope.");
$self->{output}->add_option_msg(short_msg => "Null or < 0.01 " . $budget->{properties}->{currentSpend}->{unit} . " cost found on the specified scope.");
$self->{output}->option_exit();
}

View File

@ -31,7 +31,7 @@ sub new {
$self->{version} = '0.1';
%{ $self->{modes} } = (
'costs' => 'cloud::azure::management::costs::mode::budgets'
'budgets' => 'cloud::azure::management::costs::mode::budgets'
);
$self->{custom_modes}{api} = 'cloud::azure::custom::api';

View File

@ -40,7 +40,7 @@ sub custom_status_output {
sub prefix_circuit_output {
my ($self, %options) = @_;
return "Circuit '" . $options{instance_value}->{display} . "' ";
return "Circuit '" . $options{instance_value}->{name} . "' ";
}
sub set_counters {
@ -54,7 +54,7 @@ sub set_counters {
{
label => 'status',
type => 2,
critical_default => '%{circuit_status} ne "Enabled" || %{provider_status} ne "Provisioned"'
critical_default => '%{circuit_status} ne "Enabled" || %{provider_status} ne "Provisioned"',
set => {
key_values => [ { name => 'circuit_status' }, { name => 'provider_status' }, { name => 'provider_name' },
{ name => 'provider_location' }, { name => 'name' } ],