Set properties to before_props before calling handle_update
For some resources, we need to get the old properties
while handle_update, e.g. for nova server resource, we
calculate networks from old_nets and new_nets when update
the server networks, but the properties of server is updated
after rsrc_defn reparsing. So let's set the properties to
before_props before calling handle_update.
Reviewed: https:/ /review. openstack. org/325784 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=b1617c8345b a62d2b758ae3291 471155aa6d01f2
Committed: https:/
Submitter: Jenkins
Branch: master
commit b1617c8345ba62d 2b758ae32914711 55aa6d01f2
Author: huangtianhua <email address hidden>
Date: Fri Aug 5 10:26:43 2016 -0400
Set properties to before_props before calling handle_update
For some resources, we need to get the old properties
while handle_update, e.g. for nova server resource, we
calculate networks from old_nets and new_nets when update
the server networks, but the properties of server is updated
after rsrc_defn reparsing. So let's set the properties to
before_props before calling handle_update.
Change-Id: I24fea225a2749e e9baaa6273b78ee d8126eb9e95
Closes-Bug: #1584623