File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -217,12 +217,6 @@ Style/OptionalBooleanParameter:
217217 - ' tests/beaker/lib/lvm_helper.rb'
218218
219219
220- # Offense count: 1
221- # This cop supports unsafe autocorrection (--autocorrect-all).
222- Style/SelectByRegexp :
223- Exclude :
224- - ' lib/facter/lvm_support.rb'
225-
226220# Offense count: 1
227221# This cop supports safe autocorrection (--autocorrect).
228222# Configuration parameters: AllowModifier.
Original file line number Diff line number Diff line change 3535 pvs = Facter ::Core ::Execution . execute ( "vgs -o pv_name #{ vg } 2>/dev/null" , timeout : 30 )
3636 res = nil
3737 unless pvs . nil?
38- res = pvs . split ( "\n " ) . select { | l | l =~ %r{^\s +/} } . collect ( &:strip ) . sort . join ( ',' )
38+ res = pvs . split ( "\n " ) . grep ( %r{^\s +/} ) . collect ( &:strip ) . sort . join ( ',' )
3939 end
4040 res
4141 end
You can’t perform that action at this time.
0 commit comments