Incorrect inputs and outputs processing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
In Progress
|
Undecided
|
SREELAKSHMI PENTA |
Bug Description
Assume that there's a node with property 'auth_url' and attribute 'auth_token', then it is necessary to put them into 'outputs' section of a template:
outputs:
auth_token:
value: { get_attribute: [ authorization_form, auth_token ] }
auth_token:
value: { get_property: [ authorization_form, auth_url ] }
But user did a mistake - he used the same name for both output items.
TOSCA parser parses in a wrong way. For item 'auth_token' it creates Output object with string value equal to '{ get_property: [ authorization_form, auth_url ] }'
This problem can be quickly overtaken by fixing output item names, and parser resolves everything correctly.
So, there are two possible ways to resolve this issue:
- abort on parsing saying output overriding is not allowed.
- create two Output objects with correct TOSCA functions resolving and let user deal with it.
description: | updated |
Changed in tosca-parser: | |
assignee: | nobody → Santhosh64 (santhoshkumar-kondapalli) |
Changed in tosca-parser: | |
assignee: | Santhosh64 (santhoshkumar-kondapalli) → nobody |
assignee: | nobody → Santhosh64 (santhoshkumar-kondapalli) |
Changed in tosca-parser: | |
assignee: | Santhosh64 (santhoshkumar-kondapalli) → nobody |
Changed in tosca-parser: | |
assignee: | nobody → SREELAKSHMI PENTA (sreelakshmi-penta) |
Changed in tosca-parser: | |
status: | New → In Progress |
Hi Denis, so did you see "value: { get_property: [ authorization_form, auth_url ] }" (i.e. the second value) as an output? I would vote for one of these:
1. Display the last output value? i.e. in this case, display:
auth_token:
value: { get_property: [ authorization_form, auth_url ] }
This is how 'OpenStack Heat' is working, that it respects last duplicated name and a similar approach should be fine for us.
2. Throw validation error that 'duplicate names are not allowed.