Skip to content

Commit

Permalink
fix lense typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 23, 2017
1 parent 23e015f commit cdfb3db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package/yast2-ntp-client.changes
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Fri Dec 30 12:08:30 CET 2016 - schubi@suse.de
Thu Dec 15 12:19:27 UTC 2016 - kanderssen@suse.com

- Fixed some tests that were passing because of an old ntp augeas
lense (bsc#983486).
lens (bsc#983486).
- 3.2.3

-------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions src/lib/cfa/ntp_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ class RestrictRecord < Record
def options
return [] unless tree_value?
res = augeas_options.map { |option| option[:value] }
# backward compatibility with old lense that set value ip restriction
# backward compatibility with old lens that set value ip restriction
# instead of address
# for old lenses data can look like:
# for old lens data can look like:
# line in configuration file:
# restrict -4 default nofail
# augeas tree:
Expand All @@ -413,7 +413,7 @@ def options
# value: default
# action[1]: nofail
#
# with new lense value is always address like:
# with new lens value is always address like:
# line in configuration file:
# restrict -4 default nofail
# augeas tree:
Expand All @@ -434,7 +434,7 @@ def options
end

def options=(options)
# backward compatibility with old lense that set value ip restriction
# backward compatibility with old lens that set value ip restriction
# instead of address
if ["-6", "-4"].include?(value)
options = options.dup
Expand Down

0 comments on commit cdfb3db

Please sign in to comment.