dtk_crd_parser 0.0.48 → 0.0.49
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_def.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: 87986b80bc66541aa0486d02219457ce068d62a9aba4fa17fbe6d3ab6bcd3867
|
4
|
+
data.tar.gz: 2207dbe81ce58ccf344d3e42cd002d2dc032f77226c9af59a06c7d4788b476a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df5920359db552d2a70f22b20339f73f87f9f7ba4c743c04a8ea40ef21e67be520a8618dd1f554a25f8d9f743ed1b13b1f7aa3142cfd5cf13d27e1bdb88de82
|
7
|
+
data.tar.gz: 5403231b980e18f763d04f05a6e3c4e4eb554d21bb5d6e7237220e0910a0631060f5214d98b2befcb3037d5fd7dbdc94b5f1cbf82eac4836c7f190b49bc43c2d
|
@@ -27,7 +27,7 @@ module DTK::CrdParser
|
|
27
27
|
resourceVersion = componentMetadata[:resourceVersion]
|
28
28
|
|
29
29
|
componentDefSpec = componentDef[:spec] || {}
|
30
|
-
if componentDefSpec[:actions]
|
30
|
+
if destructured_component[:action] && componentDefSpec[:actions]
|
31
31
|
componentDefAction = componentDefSpec[:actions][destructured_component[:action].to_sym]
|
32
32
|
else
|
33
33
|
componentDefAction = componentDefSpec[:actions]
|
@@ -70,7 +70,7 @@ module DTK::CrdParser
|
|
70
70
|
# i.e ec2::node[ng-1]/(node-utility::ssh-access[ubuntu])
|
71
71
|
nodeName, actionComponent = actionComponent.match(/(.*)\/(.*)/).captures if isOnSpecificNode(actionComponent)
|
72
72
|
compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent.match(regex)
|
73
|
-
action = (action && !action.empty?) ? action.to_sym :
|
73
|
+
action = (action && !action.empty?) ? action.to_sym : nil
|
74
74
|
|
75
75
|
if(compModule.nil? || compName.nil? || attributeName.nil?)
|
76
76
|
raise "Could not resolve component module, name or attribute name for component: #{actionComponent}"
|