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 +4 -4
- data/lib/rancher-metadata/api.rb +6 -4
- data/lib/rancher-metadata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5668ca8bc09327874701a345cfcd07de5a6ca8
|
4
|
+
data.tar.gz: f105a1938993560ee718e45ecc99f77825989951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbc1b6c8f45a1f5aba9a514610e9e615a16dd1416072c7702a49fd5ba4850867e7c481b3eb18314a79bb69e875e46454995e91ec0fb3a608e70bb020afc0a2cc
|
7
|
+
data.tar.gz: 1d0a4949f223a45b893b327b18978aba25fc9cecf79548ada6413290032b72f76ac3cbf1b46769b65a8955cd32cfe3945762625a72076fa6941856193ff06282
|
data/lib/rancher-metadata/api.rb
CHANGED
@@ -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 |
|
131
|
+
(new - old).each do |name|
|
132
132
|
# FIXME: until https://github.com/rancher/cattle/pull/1197 gets merged
|
133
|
-
containers[
|
133
|
+
containers[name]['service_suffix'] = self.get_container_service_suffix(name) unless containers[name].has_key?('service_suffix')
|
134
134
|
|
135
|
-
yield(
|
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
|
-
|
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
|