Skip to content

Commit

Permalink
more robust product check
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed May 15, 2018
1 parent 2cab15c commit 130d725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timezone/src/include/timezone/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def TimezoneDialog(args)
# configure NTP client
# to prevent misusage of ntp.org we need to distinguish opensuse and SLE usage
base_products = Product.FindBaseProducts
if base_products.any? { |p| p["shortname"] == "openSUSE" }
if base_products.any? { |p| p["name"] =~ /openSUSE/i }
servers = (0..3).map { |i| "#{i}.opensuse.pool.ntp.org" }
else
servers = (0..3).map { |i| "#{i}.novell.pool.ntp.org" }
Expand Down

0 comments on commit 130d725

Please sign in to comment.