dtk_crd_parser 0.0.5 → 0.0.6
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/base_class/helper_mixins.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: 8de7a897feafbfce85612bfeb21fa13b8da988455831b530e2ad5d9b05bc0a8c
|
4
|
+
data.tar.gz: e537e5720209f5504d399d6b4dbc06c2ba26fbb9ff9b35108a2bb30dae8b861f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 896b42d7e8b1cb13eab94a4896dfb48bc3095b1451aced6f9653d1d6c22dfc27c12ff702d1ab3d906164c6cbfd4e781d3954994d5ed1ae03dcccd8a469cf39cb
|
7
|
+
data.tar.gz: 318fb3926b141030ceb6cf51ec6f4adaaf91163277f30666d28e32a479719d1f434178afcd0bcfea278f8fac3b90fe935af041f42245b40ebf153037dbd98ba9
|
@@ -32,8 +32,8 @@ module DTK::CrdParser
|
|
32
32
|
# if component on node group node, get full name first
|
33
33
|
# i.e ec2::node[ng-1]/(node-utility::ssh-access[ubuntu])
|
34
34
|
nodeName, actionComponent = actionComponent.match(/(.*)\/(.*)/).captures if isOnSpecificNode(actionComponent)
|
35
|
-
compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent
|
36
|
-
action = (
|
35
|
+
compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent.match(regex)
|
36
|
+
action = (action && !action.empty?) ? action.to_sym : :create
|
37
37
|
if(compModule.nil? || compName.nil? || attributeName.nil?)
|
38
38
|
raise `Could not resolve component module, name or attribute name for component: #{actionComponent}`
|
39
39
|
end
|