summaryrefslogtreecommitdiff
path: root/heat/db/sqlalchemy/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/db/sqlalchemy/api.py')
-rw-r--r--heat/db/sqlalchemy/api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/heat/db/sqlalchemy/api.py b/heat/db/sqlalchemy/api.py
index 8dc6b2b24..6536427e7 100644
--- a/heat/db/sqlalchemy/api.py
+++ b/heat/db/sqlalchemy/api.py
@@ -486,7 +486,7 @@ def resource_create(context, values):
@retry_on_db_error
def resource_create_replacement(context,
- existing_res_id, existing_res_values,
+ existing_res_id,
new_res_values,
atomic_key, expected_engine_id=None):
session = context.session
@@ -494,7 +494,6 @@ def resource_create_replacement(context,
with session.begin():
new_res = resource_create(context, new_res_values)
update_data = {'replaced_by': new_res.id}
- update_data.update(existing_res_values)
if not _try_resource_update(context,
existing_res_id, update_data,
atomic_key,