Not considering inheritance in valid_target_types checking in functions

Bug #1672989 reported by Miguel Caballer on 2017-03-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
Undecided
Miguel Caballer

Bug Description

The functions:

_find_host_containing_attribute
_find_host_containing_property

Does not consider inheritance when checking valid_target_types in HostedOne relationship.

In case that the relationship is a child of "tosca.capabilities.Container" it does not work. It works only if the relationship type is "tosca.capabilities.Container".

Changed in tosca-parser:
assignee: nobody → Miguel Caballer (micafer1)
Changed in tosca-parser:
status: New → In Progress

Reviewed: https://review.openstack.org/445824
Committed: https://git.openstack.org/cgit/openstack/tosca-parser/commit/?id=c71c7d37b2a49597dd4a1ec6d9812ed6be642d67
Submitter: Jenkins
Branch: master

commit c71c7d37b2a49597dd4a1ec6d9812ed6be642d67
Author: Miguel Caballer <email address hidden>
Date: Wed Mar 15 09:50:34 2017 +0100

    Fix error not considering inheritance in valid_target_types checking in functions

    Change-Id: Ifcf0ce478450340597fc112a87c367f5b832faca
    Related-Bug: #1672989

Changed in tosca-parser:
status: In Progress → Fix Committed
Changed in tosca-parser:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers