dtk_crd_parser 0.0.37 → 0.0.38
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
- 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: 9de80d9037e4bed45532b1b6da392468a42ee1db
|
4
|
+
data.tar.gz: 190c410fa8e7631ab7c3d1d60b698113053211d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b2feb0d6ed5df0c9d3cf8c5576d4ce2271db35e06ad16055f236a787917c963096a5b650201cab7258b207c32dc4a2426d66f9b787f7caeb4c6a47f32ab6bf2
|
7
|
+
data.tar.gz: 2204a12dcd2573c1586dbd2d3b521e76a476652d11994ee9d43a0234e46daa740497b6a4c77c8899780b4e6587c0d065ebe62d6fee3faeb2bca88cc4b48f9ad6
|
data/lib/crd_parser/component.rb
CHANGED
@@ -15,7 +15,7 @@ module DTK::CrdParser
|
|
15
15
|
component_name.gsub!('_', '-')
|
16
16
|
component_instance_obj = client.get_component(component_instance[:name], component_instance[:namespace])
|
17
17
|
component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
|
18
|
-
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
|
18
|
+
component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components]) || []
|
19
19
|
attributes = []
|
20
20
|
component_attributes.to_hash.each do |attribute_name, attribute_value|
|
21
21
|
attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
|