dtk_crd_parser 0.0.130 → 0.0.131
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crd_parser/component.rb +1 -1
- data/lib/crd_parser/component_def.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: 9ef3173237fce7df49533629d8ddfd619469a83a
|
4
|
+
data.tar.gz: 9c23e67dadb300f050d5231c44019064bad31715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd3f16364cc3d802f6889f7755caf5dc836c95c9862dc1f1acaadc9da21f7cfe7f7d767c9b3eb8a5fc6bf9f26652cbaca5a909f71fdd069d92a1f255637670b9
|
7
|
+
data.tar.gz: bcd3fffa66af809f6542570c5b6ce44b8b37b12581a5299edf32855bc3dfdfe540e5d4d34326e919ea75eeb834140884a1e0d894e42eb491be49e33e76a86687
|
data/lib/crd_parser/component.rb
CHANGED
@@ -16,7 +16,7 @@ module DTK::CrdParser
|
|
16
16
|
|
17
17
|
def self.create_from_kube(client, component_instance, component_name)
|
18
18
|
component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
|
19
|
-
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name
|
19
|
+
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
20
20
|
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
21
21
|
attributes = []
|
22
22
|
if component_attributes
|
@@ -52,7 +52,7 @@ module DTK::CrdParser
|
|
52
52
|
|
53
53
|
def self.resolveModuleReference(module_refs, component_full_name, module_name)
|
54
54
|
raise "There are no module refs for component #{component_full_name} in component instance." if module_refs.nil?
|
55
|
-
module_ref = module_refs.find { |module_ref| module_ref[:name]
|
55
|
+
module_ref = module_refs.find { |module_ref| module_ref[:name] == module_name }
|
56
56
|
if(module_ref.nil?)
|
57
57
|
raise "Could not resolve module reference for component #{component_full_name} in component instance. Expected to find: #{module_name}"
|
58
58
|
end
|