KeyError is raised in get_attribute validation in case of nested data types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
Fix Released
|
Undecided
|
Miguel Caballer |
Bug Description
Having these two data types defined:
tosca.
derived_from: tosca.datatypes
properties:
state:
type: string
output:
type: string
tosca.
derived_from: tosca.datatypes
properties:
tasks:
type: map
type: tosca.datatypes
And trying to access an attribute value similar to that
ansible_output:
value: { get_attribute: [ web_server, other_task, some_map, tasks, some_other_map, output ] }
This error is raised:
KeyError: 'Illegal arguments for function "get_attribute". Attribute name "output" not found in "tosca.
It seems that validation does not access nested data type.
Changed in tosca-parser: | |
assignee: | nobody → Miguel Caballer (micafer1) |
Changed in tosca-parser: | |
status: | New → 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 2.6.0 release.