improve ntp mode empty ntp_hostname option (#952)

This commit is contained in:
cgagnaire 2018-04-13 12:56:50 +02:00 committed by Simon Bomm
parent ef995435b7
commit dc5c507160
1 changed files with 1 additions and 1 deletions

View File

@ -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 {