dtk_crd_parser 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65ea0ae9fb63dc8be31cf56e1261a8162ff44dd6f676df5b51deec948eb1c404
4
- data.tar.gz: 658b78a75b5986f8ffb90f3ad37531178dd48b788a0b4b6873d7c5292fcfdfb2
3
+ metadata.gz: 87986b80bc66541aa0486d02219457ce068d62a9aba4fa17fbe6d3ab6bcd3867
4
+ data.tar.gz: 2207dbe81ce58ccf344d3e42cd002d2dc032f77226c9af59a06c7d4788b476a0
5
5
  SHA512:
6
- metadata.gz: cf70296b9ed1851a4a85e736aae73a7996fb5a9e697f80a1cddb3d26adc616912ffd94d9be8514cda45dff3c3b03d2ad05382ec646b5a7c9f4b5106f847f41b1
7
- data.tar.gz: 1f84cb9ca1a604e34412462397c60a31e14cdaf95ef3bf335e08b33eed4f5c053ac49b3e9ea0e1becc2df8a283a2d5e6d1ef7ac53eadf1f1a0f2e2d03cf9aa61
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 : :create
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}"
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.48
4
+ version: 0.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK