Skip to content

Commit

Permalink
Merge pull request sensu#504 from new23d/patch-1
Browse files Browse the repository at this point in the history
noauto option mountpoints should be ignored
  • Loading branch information
kalabiyau committed Mar 7, 2014
2 parents 9513404 + b8fee3e commit 3c8b57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/check-fstab-mounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def check_mounts
@fstab.each do |line|
next if line =~ /^\s*#/
fields = line.split(/\s+/)
next if fields[1] == 'none'
next if fields[1] == 'none' || (fields[3].include? 'noauto')
next if config[:fstypes] && !config[:fstypes].include?(fields[2])
if @proc_mounts.select {|m| m.split(/\s+/)[1] == fields[1]}.empty?
@missing_mounts << fields[1]
Expand Down

0 comments on commit 3c8b57b

Please sign in to comment.