Avoid RPC call in TemplateResource.get_reference_id()
Most TemplateResources probably don't have an OS::stack_id output defined
in the template, so it's unfortunate that we have to make an RPC call to
check that every time we retrieve the resource's reference_id, which we
have to do for most stack operations.
To cut down on unnecessary RPC calls, check the template first locally to
see if there is an OS::stack_id output present.
Reviewed: https:/ /review. openstack. org/508312 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=6857b7f3686 e93805bcddae91f 307c6b62aa72d6
Committed: https:/
Submitter: Zuul
Branch: master
commit 6857b7f3686e938 05bcddae91f307c 6b62aa72d6
Author: Zane Bitter <email address hidden>
Date: Thu Sep 28 17:14:25 2017 -0400
Avoid RPC call in TemplateResourc e.get_reference _id()
Most TemplateResources probably don't have an OS::stack_id output defined
in the template, so it's unfortunate that we have to make an RPC call to
check that every time we retrieve the resource's reference_id, which we
have to do for most stack operations.
To cut down on unnecessary RPC calls, check the template first locally to
see if there is an OS::stack_id output present.
Change-Id: Ia32ed6bca453b3 91371f544ad0a07 d49dc0616e3
Related-Bug: #1719333