Not considering inheritance in valid_target_types checking in functions

Bug #1672989 reported by Miguel Caballer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TOSCA Parser
Fix Released
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)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tosca-parser (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/445824

Changed in tosca-parser:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tosca-parser (master)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.