enterprise-ohai 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ by_label_root = '/dev/disk/by-label'
21
21
  by_uuid_root = '/dev/disk/by-uuid'
22
22
 
23
23
  %x{parted --list --script}.split("\n\n\n").each do |section|
24
- path, headers, info = nil, nil, Mash.new
24
+ path, headers, partitions, info = nil, nil, [], Mash.new
25
25
 
26
26
  section.split("\n").each do |line|
27
27
  case line
@@ -37,10 +37,12 @@ by_uuid_root = '/dev/disk/by-uuid'
37
37
  m.update(k => v)
38
38
  end
39
39
 
40
- (info[:partitions] ||= []) << partition_info
40
+ partitions << partition_info
41
41
  end
42
42
  end
43
43
 
44
+ info[:partitions] = partitions
45
+
44
46
  (disks[path] ||= Mash.new).merge!(info)
45
47
  end
46
48
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enterprise-ohai
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - GitHub
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-08 00:00:00 -08:00
18
+ date: 2011-12-09 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency