dtk_crd_parser 0.0.64 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crd_parser/component.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eae06c10e8810885d39f6f93a6b39298202bb58e
4
- data.tar.gz: e8e4ecb9d2b3a299da40ed912e2557ec5ad0b15d
3
+ metadata.gz: 460780c0d1ab4e17303e5fe4a72bc3ef5451b921
4
+ data.tar.gz: 9fa32debc9d00253297a95973d20acc39eda44d7
5
5
  SHA512:
6
- metadata.gz: f0e18915b985751b2fb9b03430730bd08e85e175beb0ca3d1d2dbf75adfdbd4c8dc1fdccc2513aa6944236ead91dc99397f497f58f0d42da7097c89884e5e06c
7
- data.tar.gz: b8213f054d96793d2af765b45fd057e41df364cec407c10d7874a39ac2431e25ef7009fd7c112503ab1979c4eeea52ecabbcba3bff0854271a18112a74c08804
6
+ metadata.gz: 4a78cc54b87406028dcae91971e0d42ee7c94a530de19ccbf4aaefe92e2decb40db0954624d181ff35ae2403117db45ef2b53ee087a5fd4a5c8a7e00f8c99865
7
+ data.tar.gz: 89787badc3b66aeb8ce71643678402585795be702b09df1f9092aa43fa7477d9d662090c7b20e95df6154a7ab11f50e65bce66f99c9c687b0500cca77944edb8
@@ -18,10 +18,12 @@ module DTK::CrdParser
18
18
  component_def = ComponentDef.create_from_kube(client, component_instance_obj, component_name)
19
19
  component_attributes = getComponentAttributes(component_name, component_instance_obj[:spec][:components])
20
20
  attributes = []
21
- (component_attributes || []).to_hash.each do |attribute_name, attribute_value|
22
- attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
21
+ if component_attributes
22
+ component_attributes.to_hash.each do |attribute_name, attribute_value|
23
+ attributes.push Attribute.create_from_kube(attribute_name, attribute_value)
24
+ end
23
25
  end
24
- Component.new(component_name, component_def, attributes)
26
+ Component.new(component_name, component_def, attributes)
25
27
  end
26
28
 
27
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk_crd_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.64
4
+ version: 0.0.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK