Use heat.engine.resource.UpdateReplace

We switched all of the in-tree uses back to
heat.engine.resource.UpdateReplace in change:
c5ebe66ce9
Now we have two new places using exception.UpdateReplace,
correct them.

Change-Id: I96b0ff197ddbd73bd60feba51d663acf9a98553a
changes/40/415840/1
huangtianhua 6 years ago
parent 1413e9d344
commit 1a7881f7a5
  1. 2
      heat/engine/resource.py
  2. 2
      heat/tests/test_resource.py

@ -1162,7 +1162,7 @@ class Resource(object):
try:
runner(timeout=timeout, progress_callback=progress_callback)
update_tmpl_id_and_requires()
except exception.UpdateReplace:
except UpdateReplace:
raise
except BaseException:
with excutils.save_and_reraise_exception():

@ -2025,7 +2025,7 @@ class ResourceTest(common.HeatTestCase):
new_temp, stack_id=self.stack.id)
res_data = {}
self.assertRaises(exception.UpdateReplace, res.update_convergence,
self.assertRaises(resource.UpdateReplace, res.update_convergence,
new_temp.id, res_data, 'engine-007',
-1, new_stack)

Loading…
Cancel
Save