Skip to content

Commit

Permalink
Added -NoLog to MegaCli commandline in facts.
Browse files Browse the repository at this point in the history
This keeps the MegaSas.log file from showing up any time factor is run.
  • Loading branch information
razorsedge committed Jan 2, 2014
1 parent f94305d commit 1a7eb16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/facter/megaraid_adapters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
end

# -adpCount sends it's entire output to the stderr
count = Facter::Util::Resolution.exec("#{megacli} -adpCount 2>&1")
count = Facter::Util::Resolution.exec("#{megacli} -adpCount -NoLog 2>&1")
count =~ /Controller Count:\s+(\d+)\./ ? $1 : '0'
end
end
2 changes: 1 addition & 1 deletion lib/facter/megaraid_physical_drives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# XXX there is no support for handling more than one adapter
pds = []
list = Facter::Util::Resolution.exec("#{megacli} -PDList -aALL")
list = Facter::Util::Resolution.exec("#{megacli} -PDList -aALL -NoLog")
next if list.nil?
list.each_line do |line|
if line =~ /^Device Id:\s+(\d+)/
Expand Down

0 comments on commit 1a7eb16

Please sign in to comment.