summaryrefslogtreecommitdiff
path: root/heat/tests/test_convg_stack.py
diff options
context:
space:
mode:
authorhuangtianhua <huangtianhua@huawei.com>2017-02-06 17:02:11 +0800
committerhuangtianhua <huangtianhua@huawei.com>2017-02-10 01:12:32 +0000
commitb2e436aa67b373c4424cce7813ed1a0b0e54a734 (patch)
tree211b2de700c7c0db8559cb21a30d601f12a9791a /heat/tests/test_convg_stack.py
parent981da46bc1f487532efb8735b28d262aca442188 (diff)
downloadheat-b2e436aa67b373c4424cce7813ed1a0b0e54a734.tar.gz
Just to migrate existing resource to backup stack
Don't create a resource record for backup stack if the resource record exists, just to migrate it to backup stack, to avoid redundant data remaining for existing stack. This patch also adds resource.store() which covers _store() and _store_or_update() implemention. And then we can delete the two methods. Change-Id: I0b4b983306ea84fab0e2c81876ef407a80d25989 Closes-Bug: #1662095
Diffstat (limited to 'heat/tests/test_convg_stack.py')
-rw-r--r--heat/tests/test_convg_stack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/tests/test_convg_stack.py b/heat/tests/test_convg_stack.py
index 11b79670d..7bfaf2b09 100644
--- a/heat/tests/test_convg_stack.py
+++ b/heat/tests/test_convg_stack.py
@@ -882,7 +882,7 @@ class TestConvergenceMigration(common.HeatTestCase):
template=tools.string_template_five)
self.stack.store()
for r in self.stack.resources.values():
- r._store()
+ r.store()
self.stack.migrate_to_convergence()
self.stack = self.stack.load(self.ctx, self.stack.id)