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

Commit

Permalink
add disk size information when it's not present
Browse files Browse the repository at this point in the history
  • Loading branch information
calavera committed May 30, 2012
1 parent a7a03de commit e0ce251
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit e0ce251

Please sign in to comment.