mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 09:05:19 +02:00
improve ntp mode empty ntp_hostname option (#952)
This commit is contained in:
parent
f9d7f492d4
commit
70bfb609ab
@ -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