Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Mar 4, 2020
1 parent 7f3f372 commit a3bb08d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/clients/ntp-client_proposal.rb
Expand Up @@ -175,8 +175,6 @@ def ValidateSingleServer(ntp_server)
end

def MakeProposal
ntp_items = []

# On the running system, read all the data, otherwise firewall and other
# stuff outside ntp.conf may not be initialized correctly (#375877)
if !Stage.initial
Expand All @@ -189,7 +187,7 @@ def MakeProposal
end

if select_ntp_server
ntp_items = fallback_ntp_items if ntp_items.empty?
ntp_items = fallback_ntp_items
# Once read or proposed any config we consider it as read (bnc#427712)
NtpClient.config_has_been_read = true

Expand Down Expand Up @@ -534,8 +532,6 @@ def dhcp_ntp_items
# @return [Array<Yast::Term>] ntp address table Item
def fallback_ntp_items
dhcp_items = dhcp_ntp_items

log.info("Nothing found in /etc/chrony.conf")
if dhcp_items.empty?
log.info("Proposing current timezone-based NTP server list")
return timezone_ntp_items
Expand Down

0 comments on commit a3bb08d

Please sign in to comment.