We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 048d084 + 35cf8a7 commit 5e1279bCopy full SHA for 5e1279b
lib/facter/lvm_support.rb
@@ -15,7 +15,9 @@
15
Facter.add('lvm_vgs') do
16
confine :lvm_support => true
17
18
- vgs = Facter::Core::Execution.execute('vgs -o name --noheadings 2>/dev/null', timeout: 30)
+ if Facter.value(:lvm_support)
19
+ vgs = Facter::Core::Execution.execute('vgs -o name --noheadings 2>/dev/null', timeout: 30)
20
+ end
21
if vgs.nil?
22
setcode { 0 }
23
else
@@ -46,7 +48,9 @@
46
48
Facter.add('lvm_pvs') do
47
49
50
- pvs = Facter::Core::Execution.execute('pvs -o name --noheadings 2>/dev/null', timeout: 30)
51
52
+ pvs = Facter::Core::Execution.execute('pvs -o name --noheadings 2>/dev/null', timeout: 30)
53
54
if pvs.nil?
55
56
0 commit comments