Skip to content

Commit

Permalink
Feature #3263: Fix Ruby 1.9 with SymbolArray
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmontero committed Apr 26, 2019
1 parent 9808147 commit f674a2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions share/linters/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,10 @@ Style/SymbolProc:
Style/StderrPuts:
Enabled: false

#This breaks Ruby 1.9
Style/SymbolArray:
Enabled: false

######
# LINT
######
Expand Down
2 changes: 1 addition & 1 deletion src/onedb/fsck/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def calculate_new_leases(leases, ids, addrs, counters, error)
end

# Things that can't be fixed
%i[ip ip6_global ip6_link ip6_ula].each do |key|
[:ip, :ip6_global, :ip6_link, :ip6_ula].each do |key|
next if counter_lease[key] == lease[key]

log_error("VNet #{ids[:o]} AR #{ids[:ar]} has a wrong " \
Expand Down

0 comments on commit f674a2b

Please sign in to comment.