Skip to content

Commit

Permalink
Disable Style/SymbolProc in aix object
Browse files Browse the repository at this point in the history
The cop is unsafe and changing it breaks test, so disable it
  • Loading branch information
joshcooper committed May 24, 2024
1 parent 290ebdb commit 73e253a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/aix_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def numeric_mapping(info = {})

# AIX will do the right validation to ensure numeric attributes
# can't be set to non-numeric values, so no need for the extra clutter.
info[:attribute_to_property] = lambda do |value|
info[:attribute_to_property] = lambda do |value| # rubocop:disable Style/SymbolProc
value.to_i
end

Expand Down

0 comments on commit 73e253a

Please sign in to comment.