Skip to content

Commit

Permalink
added description
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 11, 2015
1 parent 5413e5b commit b59abc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/NtpClient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@ def Import(settings)
next deep_copy(p)
end
end

# restricts is a list of entries whereas restrict_map
# is a map with target key (ip, ipv4-tag, ipv6-tag,...).
restricts = settings["restricts"] || []
@restrict_map = {}
restricts.each do |entry|
Expand All @@ -959,6 +960,9 @@ def Import(settings)
# (For use by autoinstallation.)
# @return [Hash] Dumped settings (later acceptable by Import ())
def Export
# restrict_map is a map with the key ip,ipv4-tag or ipv6-tag.
# This will be converted into a list in order to use it in
# autoyast XML file properly.
restricts = @restrict_map.collect do |target, values|
values["target"] = target
values
Expand Down

0 comments on commit b59abc9

Please sign in to comment.