get rid off expensive which call
This commit is contained in:
parent
2f3df107de
commit
3bba0859e1
1 changed files with 1 additions and 4 deletions
|
@ -1,8 +1,5 @@
|
|||
Facter.add("mysql_exists") do
|
||||
ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
|
||||
setcode do
|
||||
mysqlexists = system "which mysql > /dev/null 2>&1"
|
||||
($?.exitstatus == 0)
|
||||
File.exist? '/usr/bin/mysql'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue