Error setting host relationship in "long" format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
Fix Released
|
Undecided
|
Miguel Caballer |
Bug Description
If you set the host requirement in long format (setting the capability type and/or the relatinship type) and the function get_property or get_attribute are used the parser fails:
node_types:
tosca.
derived_from: tosca.nodes.
properties:
test:
type: string
topology_template:
node_templates:
some:
type: tosca.nodes.
properties:
test: { get_attribute: [ HOST, private_address ] }
requirements:
- host:
node: server
server:
type: tosca.nodes.Compute
This is the error:
File "toscaparser/
self.
File "toscaparser/
None)
File "toscaparser/
self.
File "toscaparser/
prop.value)
File "toscaparser/
return func(tosca_tpl, node_template, func_name, func_args)
File "toscaparser/
self.validate()
File "toscaparser/
self.
File "toscaparser/
node_tpl = self._find_
File "toscaparser/
node_tpl = self._find_
File "toscaparser/
target_type = target_
AttributeError: 'NoneType' object has no attribute 'type_definition'
Changed in tosca-parser: | |
assignee: | nobody → Miguel Caballer (micafer1) |
status: | New → In Progress |
description: | updated |
Changed in tosca-parser: | |
status: | In Progress → Fix Committed |
Changed in tosca-parser: | |
status: | Fix Committed → In Progress |
Changed in tosca-parser: | |
status: | In Progress → Fix Committed |
Changed in tosca-parser: | |
status: | Fix Committed → Fix Released |
This issue was fixed in the openstack/ tosca-parser 1.3.0 release.