dtk_crd_parser 0.0.5 → 0.0.6

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: 31302b10ec8f632b79a2bf34ac28b26909abb03b43fe218686bfb5fbf68124d1
4
- data.tar.gz: d87bddb62db4fb064ebe5e48f5e67273b1a1a1f38e9e89035d2e9b9557663b0e
3
+ metadata.gz: 8de7a897feafbfce85612bfeb21fa13b8da988455831b530e2ad5d9b05bc0a8c
4
+ data.tar.gz: e537e5720209f5504d399d6b4dbc06c2ba26fbb9ff9b35108a2bb30dae8b861f
5
5
  SHA512:
6
- metadata.gz: 9a3107822c8596291237622e41492d6be9d9f896f547cde93d1bf6027ee58cc36add8d6a02749e3af5653ad996a5024b489c15049dfd272cca660d6f9548f2b4
7
- data.tar.gz: d1f8cbb443d0603e2963438a16b1df8c07a13d56838fcae73c1093040d5439fcb0324e6d5df2f1a13ff994dd038c5322af2817ff41268a622dbb43b330180286
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 = (!action || !action.empty?) ? action.to_sym : :create
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
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - DTK