mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +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}->exit();
|
||||
}
|
||||
if (defined($self->{option_results}->{ntp_hostname})) {
|
||||
if (defined($self->{option_results}->{ntp_hostname}) && $self->{option_results}->{ntp_hostname} ne '') {
|
||||
my %ntp;
|
||||
|
||||
eval {
|
||||
|
Loading…
x
Reference in New Issue
Block a user