Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Feb 5, 2020
1 parent 0d8733b commit 10af029
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions library/general/src/lib/cfa/sysctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def known_attributes
# Returning all attributes together with all raw_* attributes
# for boolean attributes.
ret = ATTRIBUTES.keys
BOOLEAN_ATTRIBUTES.each { |attr| ret << "raw_#{attr.to_s}".to_sym }
BOOLEAN_ATTRIBUTES.each { |attr| ret << "raw_#{attr}".to_sym }
ret
end

Expand Down Expand Up @@ -107,7 +107,8 @@ def boolean_attr(*attrs)
BOOLEAN_ATTRIBUTES = [
:forward_ipv4, :forward_ipv6, :tcp_syncookies, :disable_ipv6,
:ipv4_forwarding_default, :ipv4_forwarding_all, :ipv6_forwarding_default,
:ipv6_forwarding_all ].freeze
:ipv6_forwarding_all
].freeze

attributes(ATTRIBUTES)

Expand Down
5 changes: 2 additions & 3 deletions library/general/src/lib/cfa/sysctl_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ def save(check_conflicts: true)
if check_conflicts
conflict_files = conflict_files()
if !conflict_files.empty?
Yast::Report.Warning(_("The settings have been written to %{yast_file_name}.\n"\
"But they will be overruled be manual setting described in %{file_list}.") % {
:yast_file_name => YAST_CONFIG_PATH, :file_list => conflict_files.join(", ") })
Yast::Report.Warning(format(_("The settings have been written to %{yast_file_name}.\n"\
"But they will be overruled be manual setting described in %{file_list}."), yast_file_name: YAST_CONFIG_PATH, file_list: conflict_files.join(", ")))
end
end
yast_config_file&.save
Expand Down

0 comments on commit 10af029

Please sign in to comment.