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 +4 -4
- data/lib/smartos-manager/core.rb +6 -3
- data/lib/smartos-manager/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95aaf587b18c1394089aa4be681a3a61cd2a183b
|
4
|
+
data.tar.gz: aed91a19b901c13a23902c420da71efa2efc3bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a42aecb1459bc8655dfb41e66a6f547f246a3752c03117ec1f3580269bf4a51bafedf4bcf4ee32be1d0f2b818fa5cc89df817875e4880065f02aa298bbeca1e
|
7
|
+
data.tar.gz: 9bc7f887f79bdb495721a317bd14ef110f5bdae4c36593d2d828d4ff33fbaf8018e9c4498dbdbda4df2137219afcca944f91ded129cb6131f07be1ea12846339
|
data/lib/smartos-manager/core.rb
CHANGED
@@ -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
|
|
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.
|
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:
|
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.
|
166
|
+
rubygems_version: 2.4.5.1
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: "... ."
|