rancher-metadata 0.17.8 → 0.17.9

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: 58557aa34fbd096e4379591f47e3892703f2060f
4
- data.tar.gz: 08228fefab2525dee8cc44d98203ad24621a21f7
3
+ metadata.gz: 7d5668ca8bc09327874701a345cfcd07de5a6ca8
4
+ data.tar.gz: f105a1938993560ee718e45ecc99f77825989951
5
5
  SHA512:
6
- metadata.gz: c49a47f8c5e682230e7e34051830ac1502ff449dd61a8179aa830f3b3810e881eb1d1d9144341d789d3a65d0e83efba27b454ba4732cc3f41fb83c80db738ef7
7
- data.tar.gz: 04152d95bf737f16503a33f0619f473151345f37252dd98f46818169077c7c9166358f16c41165576fc760be058c8065b308f6561680ef530febfba2fc42df25
6
+ metadata.gz: fbc1b6c8f45a1f5aba9a514610e9e615a16dd1416072c7702a49fd5ba4850867e7c481b3eb18314a79bb69e875e46454995e91ec0fb3a608e70bb020afc0a2cc
7
+ data.tar.gz: 1d0a4949f223a45b893b327b18978aba25fc9cecf79548ada6413290032b72f76ac3cbf1b46769b65a8955cd32cfe3945762625a72076fa6941856193ff06282
@@ -128,11 +128,11 @@ module RancherMetadata
128
128
  containers = self.get_service_containers(service)
129
129
  new = containers.keys()
130
130
 
131
- (new - old).each do |container_name|
131
+ (new - old).each do |name|
132
132
  # FIXME: until https://github.com/rancher/cattle/pull/1197 gets merged
133
- containers[container_name]['service_suffix'] = self.get_container_service_suffix(container_name) unless containers[container_name].has_key?('service_suffix')
133
+ containers[name]['service_suffix'] = self.get_container_service_suffix(name) unless containers[name].has_key?('service_suffix')
134
134
 
135
- yield(container_name, containers[container_name])
135
+ yield(name, containers[name])
136
136
  end
137
137
 
138
138
  old = new
@@ -169,7 +169,9 @@ module RancherMetadata
169
169
  end
170
170
 
171
171
  # FIXME: until https://github.com/rancher/cattle/pull/1197 gets merged
172
- container['service_suffix'] = self.get_container_service_suffix(container_name) unless container.has_key?('service_suffix')
172
+ if container
173
+ container['service_suffix'] = self.get_container_service_suffix(container_name) unless container.has_key?('service_suffix')
174
+ end
173
175
 
174
176
  container
175
177
  end
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module RancherMetadata
8
- VERSION = "0.17.8"
8
+ VERSION = "0.17.9"
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.8
4
+ version: 0.17.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti