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…
Reference in New Issue