Skip to content

Commit 610f54c

Browse files
committed
Make this test a lot more specific to avoid false positives down the line
1 parent 4b7b8dc commit 610f54c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ Lint/Void:
3030
Exclude:
3131
- 'spec/unit/facter/lvm_support_spec.rb'
3232

33-
# Offense count: 1
34-
# Configuration parameters: CountBlocks.
35-
Metrics/BlockNesting:
36-
Max: 4
37-
3833
# Offense count: 3
3934
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
4035
# URISchemes: http, https

lib/puppet/provider/logical_volume/lvm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def size=(new_size)
245245
end
246246
rescue Puppet::ExecutionFailure => detail
247247
## If blkid returned 2, there is no filesystem present or the file doesn't exist. This should not be a failure.
248-
if detail.message =~ %r{ returned 2:}
248+
if detail.message =~ %r{ returned 2:} # rubocop:disable Metrics/BlockNesting
249249
Puppet.debug(detail.message)
250250
end
251251
end

0 commit comments

Comments
 (0)