dtk_crd_parser 0.0.4 → 0.0.5
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 +1 -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: 31302b10ec8f632b79a2bf34ac28b26909abb03b43fe218686bfb5fbf68124d1
|
4
|
+
data.tar.gz: d87bddb62db4fb064ebe5e48f5e67273b1a1a1f38e9e89035d2e9b9557663b0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a3107822c8596291237622e41492d6be9d9f896f547cde93d1bf6027ee58cc36add8d6a02749e3af5653ad996a5024b489c15049dfd272cca660d6f9548f2b4
|
7
|
+
data.tar.gz: d1f8cbb443d0603e2963438a16b1df8c07a13d56838fcae73c1093040d5439fcb0324e6d5df2f1a13ff994dd038c5322af2817ff41268a622dbb43b330180286
|
@@ -33,8 +33,7 @@ module DTK::CrdParser
|
|
33
33
|
# i.e ec2::node[ng-1]/(node-utility::ssh-access[ubuntu])
|
34
34
|
nodeName, actionComponent = actionComponent.match(/(.*)\/(.*)/).captures if isOnSpecificNode(actionComponent)
|
35
35
|
compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent
|
36
|
-
action = !action.empty? ? action.to_sym : :create
|
37
|
-
|
36
|
+
action = (!action || !action.empty?) ? action.to_sym : :create
|
38
37
|
if(compModule.nil? || compName.nil? || attributeName.nil?)
|
39
38
|
raise `Could not resolve component module, name or attribute name for component: #{actionComponent}`
|
40
39
|
end
|