mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
improve ntp mode empty ntp_hostname option (#952)
This commit is contained in:
parent
ef995435b7
commit
dc5c507160
@ -75,7 +75,7 @@ sub run {
|
|||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
if (defined($self->{option_results}->{ntp_hostname})) {
|
if (defined($self->{option_results}->{ntp_hostname}) && $self->{option_results}->{ntp_hostname} ne '') {
|
||||||
my %ntp;
|
my %ntp;
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user