smartos-manager 1.5.5 → 1.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d930e1b3dd0b55614b9a5f621d267bca346e8b00
4
- data.tar.gz: d3612236431e2f72815318c3e6b16c59fce1d7df
3
+ metadata.gz: 95aaf587b18c1394089aa4be681a3a61cd2a183b
4
+ data.tar.gz: aed91a19b901c13a23902c420da71efa2efc3bb7
5
5
  SHA512:
6
- metadata.gz: 014dd53eccfc59d3575fdb70d2b45327fbf4d8eed37cfe16c88563db7dc1cc9cfc08d0a385bedc5c3efca232efe2379441f9f27aa0b2293a5fc5737efbb900f1
7
- data.tar.gz: 0af51492dc2d9b67bf1c65bda3afcb016462a266f7d3c315a08661172cdf7ca3153710fa4409f5a8e35d0fd54c9a47012161526ec00c4ecf83c56f24ac37e1b6
6
+ metadata.gz: 8a42aecb1459bc8655dfb41e66a6f547f246a3752c03117ec1f3580269bf4a51bafedf4bcf4ee32be1d0f2b818fa5cc89df817875e4880065f02aa298bbeca1e
7
+ data.tar.gz: 9bc7f887f79bdb495721a317bd14ef110f5bdae4c36593d2d828d4ff33fbaf8018e9c4498dbdbda4df2137219afcca944f91ded129cb6131f07be1ea12846339
@@ -119,6 +119,11 @@ class Registry
119
119
  ret = {}
120
120
  rss = {}
121
121
 
122
+
123
+ @hosts.values.each do |host|
124
+ ret[host] = []
125
+ end
126
+
122
127
  # Memory used for each VM
123
128
  run_on_all("zonememstat").each do |_, data|
124
129
  data.split("\n").each do |line|
@@ -132,8 +137,8 @@ class Registry
132
137
 
133
138
  vms = run_on_all("vmadm list -o #{columns.join(',')} -p")
134
139
  vms.each do |addr, data|
135
- host = find_host(addr)
136
140
  if data
141
+ host = find_host(addr)
137
142
  ret[host] = data.split("\n").map! do |line|
138
143
  dd = {}
139
144
  line.split(':', 20).each.with_index do |val, n|
@@ -142,8 +147,6 @@ class Registry
142
147
 
143
148
  VirtualMachine.new(dd, rss)
144
149
  end
145
- else
146
- ret[host] = []
147
150
  end
148
151
  end
149
152
 
@@ -1,3 +1,3 @@
1
1
  module SmartosManager
2
- VERSION = "1.5.5"
2
+ VERSION = "1.5.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartos-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Ammous
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-27 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.2.2
166
+ rubygems_version: 2.4.5.1
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: "... ."