dtk_crd_parser 0.0.110 → 0.0.111

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
  SHA256:
3
- metadata.gz: 502b1b079e5ba1ddd74e7c64f4b74ce75ff08da40853391baa390945184bf4f7
4
- data.tar.gz: d627eb5ed42c883f8af374420c147db0a217d483d13619f07f6dccd832196848
3
+ metadata.gz: 7fcfebdd0c07555f28be8106134a1b2ed7d838525417b6277317f0ee8000c39c
4
+ data.tar.gz: ed5ca8588d797cb8f61e1499a8731ae3bef138a15adcdfc53e39c17ef87bdd5d
5
5
  SHA512:
6
- metadata.gz: 49bf363915679992d6170530b2dc78b2a9bb80de8060925c866eb42a252f3d82b5681620cfeb85957e1194651898181010d7e4ca74a83089d26b74dca081bf22
7
- data.tar.gz: 00f336f275728ab932ee2d0c72c0fb7330fd829d8712561f869c4611dcaebf5d6fb7df07d40916e3194a48f3dce7d7542bab6899cb520df511b49b2e19dee1aa
6
+ metadata.gz: 7d73861e22ee4b2b97cd743e149f756d2a89fd2925e0ec5962469334b91a6fd41ebcd2290dd50edddbdcb6690947fccf26100098809c9dae4767cdc8811186b5
7
+ data.tar.gz: e03803823d33911ad2aaf156277181b4414c8f3f949887d6584e7de710d4635150e1a60d3947968359dbc9ccae1b56e30155e223d938c278f38d9be0d3e5961b
@@ -36,9 +36,11 @@ module DTK::CrdParser
36
36
  protected
37
37
 
38
38
  def self.getComponentAttributes(fullComponentName, components)
39
- component = (components || []).each do |component|
40
- #component.gsub!('_', '-')
41
- componentObj = component.gsub('_', '-')[fullComponentName]
39
+ component = (components || []).each do |name, component|
40
+ name.gsub!('_', '-')
41
+ if (name == fullComponentName)
42
+ componentObj = component
43
+ end
42
44
  Logger.new('/proc/1/fd/1').error "Componentobj: #{componentObj}"
43
45
  if(componentObj && componentObj.is_a?(Kubeclient::Resource))
44
46
  return componentObj[:attributes]
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.110
4
+ version: 0.0.111
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK