chef_knives 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/bin/chef_node_fs_usage +2 -2
- data/chef_knives.gemspec +1 -1
- data/lib/chef/knives.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/bin/chef_node_fs_usage
CHANGED
@@ -44,13 +44,13 @@ def main
|
|
44
44
|
next if node.fqdn !~ /#{Choice.choices[:match]}/
|
45
45
|
matching_fs = []
|
46
46
|
node.filesystem.each do |fsname,fsattrs|
|
47
|
-
if not (%w[proc binfmt_misc sysfs tmpfs devpts rpc_pipefs].include? fsattrs['fs_type'])
|
47
|
+
if not (%w[proc binfmt_misc sysfs tmpfs devpts usbfs rpc_pipefs].include? fsattrs['fs_type'])
|
48
48
|
if Choice.choices[:usage_threshold]
|
49
49
|
uthres = Choice.choices[:usage_threshold].to_i
|
50
50
|
usage = fsattrs['percent_used'].chomp.strip.gsub('%','').to_i
|
51
51
|
(matching_fs << " #{fsname}".ljust(50) + fsattrs['percent_used']) if usage > uthres
|
52
52
|
else
|
53
|
-
matching_fs << " #{fsname}".ljust(50) + fsattrs['percent_used']
|
53
|
+
matching_fs << " #{fsname}".ljust(50) + (fsattrs['percent_used'] || '')
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
data/chef_knives.gemspec
CHANGED
data/lib/chef/knives.rb
CHANGED