Skip to content

Commit

Permalink
Merge b3c6651 into e4dcb5f
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Mar 23, 2020
2 parents e4dcb5f + b3c6651 commit df8c50c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 7 additions & 0 deletions package/yast2-ntp-client.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Mar 23 14:19:10 CET 2020 - schubi@suse.de

- Do not write ntp-servers if they have been shown only (more than
one ntp-server) (follow up of bsc#1164547).
- 4.1.12

-------------------------------------------------------------------
Wed Mar 18 15:44:25 CET 2020 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-ntp-client.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-ntp-client
Version: 4.1.11
Version: 4.1.12
Release: 0
Summary: YaST2 - NTP Client Configuration
License: GPL-2.0-or-later
Expand Down
11 changes: 7 additions & 4 deletions src/clients/ntp-client_proposal.rb
Expand Up @@ -321,10 +321,13 @@ def AskUser
def WriteNtpSettings(ntp_servers, ntp_server, run_service)
ntp_servers = deep_copy(ntp_servers)
NtpClient.modified = true
NtpClient.ntp_conf.clear_pools
ntp_servers << ntp_server if ntp_servers.empty?
ntp_servers.each do |server|
NtpClient.ntp_conf.add_pool(server)
if select_ntp_server
# The user has changed the ntp-server(s). So we are writing them.
NtpClient.ntp_conf.clear_pools
ntp_servers << ntp_server if ntp_servers.empty?
ntp_servers.each do |server|
NtpClient.ntp_conf.add_pool(server)
end
end
if run_service
NtpClient.run_service = true
Expand Down

0 comments on commit df8c50c

Please sign in to comment.