Skip to content

Commit ebe7cec

Browse files
(maint) - remove conditional and opt for confine
Co-authored-by: Tim Meusel <tim@bastelfreak.de>
1 parent a27abf9 commit ebe7cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/facter/lvm_support.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
confine lvm_support: true
1818

1919
setcode do
20-
vgs = Facter::Core::Execution.execute('vgs -o name --noheadings 2>/dev/null', timeout: 30) if Facter.value(:lvm_support)
20+
vgs = Facter::Core::Execution.execute('vgs -o name --noheadings 2>/dev/null', timeout: 30)
2121

2222
if vgs.nil?
2323
0
@@ -49,7 +49,7 @@
4949
confine lvm_support: true
5050

5151
setcode do
52-
pvs = Facter::Core::Execution.execute('pvs -o name --noheadings 2>/dev/null', timeout: 30) if Facter.value(:lvm_support)
52+
pvs = Facter::Core::Execution.execute('pvs -o name --noheadings 2>/dev/null', timeout: 30)
5353

5454
if pvs.nil?
5555
0

0 commit comments

Comments
 (0)