Failed Output on get_attribute with 0 instances

Description

When asking for deployment output on a node with 0 instances you get an error.
Like: "An error occurred on the server: 400: Unable to evaluate get_attribute function: Node specified in function does not exist: LSSecondary.
Although this is how TOSCA specifies it, It should return None as value instead of returning an error.

Steps to Reproduce

1. Create a blueprint with an outputs section which calls get_attribute on a node without an instance.
2. Upload the blueprint.
3. Create a deployment.
4. Run `cfy deployments outputs deployment_1`

Expected result :
The valid outputs appear.
The invalid output appear with an error.

Actual result :
Getting an error : "An error occurred on the server: 400: Unable to evaluate get_attribute function: Node specified in function does not exist..."
And none of the valid outputs

Why Propose Close?

None
Done

Assignee

Inbal Amrani

Reporter

Jonathan Abramsohn

Severity

Medium

Target Version

4.5

Premium Only

no

Found In Version

4.0

QA Owner

None

Bug Type

None

Customer Encountered

None

Customer Name

None

Release Notes

no

Priority

None

Sprint

None

Priority

Unprioritized
Configure