From: Peter Palfrader Date: Wed, 7 Nov 2018 19:19:00 +0000 (+0100) Subject: change megaraid_sas test X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e3b8a5e4eae28e96b6d955b4be408f8510e49c52;p=mirror%2Fdsa-puppet.git change megaraid_sas test --- diff --git a/modules/debian_org/lib/facter/raidarray.rb b/modules/debian_org/lib/facter/raidarray.rb index c9cf762ad..b313ce79a 100644 --- a/modules/debian_org/lib/facter/raidarray.rb +++ b/modules/debian_org/lib/facter/raidarray.rb @@ -53,7 +53,7 @@ end Facter.add("megaraid_sas") do confine :kernel => :linux setcode do - if FileTest.exist?("/dev/megaraid_sas_ioctl_node") + if FileTest.exist?("/sys/module/megaraid_sas/") true else false