rancher-metadata 0.17.12 → 0.17.13

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: 626665a97ead5093041e9aaaf59b1c99a39cc015
4
- data.tar.gz: bb9c92d332502485c99bc01ffc007f1e1ed24c5a
3
+ metadata.gz: 881cf3b137ce4010e1532a4b79199de578889ee1
4
+ data.tar.gz: 293c545de6c10860db4d09eb823edac8a8203453
5
5
  SHA512:
6
- metadata.gz: 0f75b2e64d1f16acecf84166dfec0e8d24bae7adebb921f56f65d46e1974ae455418ea525e735ef981b469143cf0201049f3d257f1a2983532bd3bb4bf318684
7
- data.tar.gz: fadf695e79741f1f15cdb1a08863378ecec69c4c7e56025e7d7e741eab72fdcfc34e7ff278a406c7baef1f5c83cbe959b8a8305c611abc8d145113ccf125deff
6
+ metadata.gz: f560323459d2fb6eeca34be599ecc5e120915b61e1e01c5aaa7427c77dafbe6cd965aae24ddb942c57884f0909c480467367ff76e3aeed35d74da300c20b2ec5
7
+ data.tar.gz: ad9037b89b29c71574bc11c457de594b51cdc4c0769a7a238a500177dd68b5a5e9532aa0d0e724d2fdc24a7a6e26eb5477b3a4157ba43593db031259fe246e58
@@ -103,6 +103,9 @@ module RancherMetadata
103
103
  containers = {}
104
104
 
105
105
  self.get_service_field("containers", service).each do |container|
106
+ container['create_index'] = container['create_index'].to_i if (container.has_key?('create_index') and container['create_index'].is_a?(String))
107
+ container['service_index'] = container['service_index'].to_i if (container.has_key?('service_index') and container['service_index'].is_a?(String))
108
+
106
109
  containers[container['name']] = container
107
110
  end
108
111
 
@@ -150,7 +153,16 @@ module RancherMetadata
150
153
  end
151
154
 
152
155
  def get_containers
153
- self.api_get("/containers")
156
+ containers = []
157
+
158
+ self.api_get("/containers").each do |container|
159
+ container['create_index'] = container['create_index'].to_i if (container.has_key?('create_index') and container['create_index'].is_a?(String))
160
+ container['service_index'] = container['service_index'].to_i if (container.has_key?('service_index') and container['service_index'].is_a?(String))
161
+
162
+ containers << container
163
+ end
164
+
165
+ containers
154
166
  end
155
167
 
156
168
  def get_container(container_name = nil)
@@ -162,6 +174,9 @@ module RancherMetadata
162
174
  container = self.api_get("/self/container")
163
175
  end
164
176
 
177
+ container['create_index'] = container['create_index'].to_i if (container.has_key?('create_index') and container['create_index'].is_a?(String))
178
+ container['service_index'] = container['service_index'].to_i if (container.has_key?('service_index') and container['service_index'].is_a?(String))
179
+
165
180
  container
166
181
  end
167
182
 
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module RancherMetadata
8
- VERSION = "0.17.12"
8
+ VERSION = "0.17.13"
9
9
 
10
10
  def self.version
11
11
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rancher-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.12
4
+ version: 0.17.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti