Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Add disk size information when it's not present #1

Merged
merged 2 commits into from May 30, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion enterprise-ohai.gemspec
Expand Up @@ -2,7 +2,7 @@ dir = File.dirname(__FILE__)

Gem::Specification.new do |s|
s.name = 'enterprise-ohai'
s.version = '0.1.6'
s.version = '0.1.7'
s.summary = s.description = 'Ohai plugins for enterprise.'
s.authors = %w[GitHub]

Expand Down
1 change: 1 addition & 0 deletions lib/enterprise/ohai/plugins/linux/disk.rb
Expand Up @@ -78,6 +78,7 @@ def disk_size(path)
disks.keys.each do |device|
disks[device].update(filesystem[device]) if filesystem[device]
disks[device].update(:swap => true) if swap[device]
disks[device][:size] ||= disk_size(device)
end

disk disks