dtk_crd_parser 0.0.164 → 0.0.165
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 +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebed3ff619773d2afc2a64d3f958f2a38fd1cbaf70bc07dac553b3770c4614d7
|
4
|
+
data.tar.gz: '0108bde63f145de2af21685369e5f22c120e3fbc95ba63f3236940e4ab8634ee'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3807050c76c726cfaa50f5101f557b0017d08aff2316b5c2e0798c5a0e36cafb86fadb77935c0576ea00db4638191992364db8e5596bf8981a94f8a2b92e470
|
7
|
+
data.tar.gz: f400de46cd272af31ee0635e4877295939ccd232633875c8139e8f078405df81ade9785052802aee25bb5e361f284439cb0a58f807104d65e097717f2f5db707
|
data/lib/crd_parser/component.rb
CHANGED
@@ -32,10 +32,10 @@ module DTK::CrdParser
|
|
32
32
|
Logger.new('/proc/1/fd/1').error "ATTRIBUTES BEFORE"
|
33
33
|
Logger.new('/proc/1/fd/1').error attributes
|
34
34
|
Logger.new('/proc/1/fd/1').error "SELECTED ATTRIBUTES"
|
35
|
-
attrib = attributes.
|
35
|
+
attrib = attributes.any?{|h| h.name == "tfstate"}
|
36
36
|
Logger.new('/proc/1/fd/1').error attrib
|
37
37
|
|
38
|
-
selected = component_def.attribute_type_info.select{|attribute|
|
38
|
+
selected = component_def.attribute_type_info.select{|attribute| attributes.any?{|h| h.name == "tfstate"}}
|
39
39
|
Logger.new('/proc/1/fd/1').error selected
|
40
40
|
other_attrs = component_def.attribute_type_info.reject {|attribute| attributes.include?{|h| h.name == attribute.name }}
|
41
41
|
|