From 1a7881f7a5cddd280b3d1f885106678c1c741bc7 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Fri, 30 Dec 2016 17:30:01 +0800 Subject: [PATCH] Use heat.engine.resource.UpdateReplace We switched all of the in-tree uses back to heat.engine.resource.UpdateReplace in change: c5ebe66ce98a7366ad7444f73ff7abf07f5f332c Now we have two new places using exception.UpdateReplace, correct them. Change-Id: I96b0ff197ddbd73bd60feba51d663acf9a98553a --- heat/engine/resource.py | 2 +- heat/tests/test_resource.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/heat/engine/resource.py b/heat/engine/resource.py index 94820fd3dc..fb57805c78 100644 --- a/heat/engine/resource.py +++ b/heat/engine/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(): diff --git a/heat/tests/test_resource.py b/heat/tests/test_resource.py index eeb5c121fb..083ac0569a 100644 --- a/heat/tests/test_resource.py +++ b/heat/tests/test_resource.py @@ -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)