Skip to content

Commit 73e253a

Browse files
committed
Disable Style/SymbolProc in aix object
The cop is unsafe and changing it breaks test, so disable it
1 parent 290ebdb commit 73e253a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/aix_object.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def numeric_mapping(info = {})
131131

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

0 commit comments

Comments
 (0)