chef_knives 0.3.1 → 0.3.2
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,10 +44,10 @@ 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 usbfs rpc_pipefs].include? fsattrs['fs_type'])
|
47
|
+
if not (%w[proc configfs binfmt_misc none 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
|
-
usage = fsattrs['percent_used'].chomp.strip.gsub('%','').to_i
|
50
|
+
usage = fsattrs['percent_used'].chomp.strip.gsub('%','').to_i rescue 100
|
51
51
|
(matching_fs << " #{fsname}".ljust(50) + fsattrs['percent_used']) if usage > uthres
|
52
52
|
else
|
53
53
|
matching_fs << " #{fsname}".ljust(50) + (fsattrs['percent_used'] || '')
|
data/chef_knives.gemspec
CHANGED
data/lib/chef/knives.rb
CHANGED