Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_property/get_attribute functions should not fail with REQ_TARGET keyword if requirement is optional and not actually linked on a node template with a relationship template #789

Closed
loicalbertin opened this issue Nov 18, 2022 · 0 comments · Fixed by #790
Labels
bug Something isn't working

Comments

@loicalbertin
Copy link
Member

Bug Report

Description

get_attribute: [ REQ_TARGET, requirement_name, attribute_name] and get_property: [ REQ_TARGET, requirement_name, property_name] fails to resolve if an optional requirement is not actually connected to a capability.

Expected behavior

If requirement definition is defined as optional and there is no actual relationship template on the requirement then get_property/get_attribute functions should not fail and return no value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant