Fix DB archiver AttributeError due to wrong table name attribute used

Change-Id: I658a12b3672eb8b1e97522259e9a212b3e6ab161
Closes-bug: #1790750
(cherry picked from commit d0657f4acf)
This commit is contained in:
Sam Morrison 2018-09-05 11:03:48 +10:00
parent b612a63c36
commit 37722c7f4f
1 changed files with 1 additions and 1 deletions

View File

@ -6381,7 +6381,7 @@ def _archive_if_instance_deleted(table, shadow_table, instances, conn,
return result_delete.rowcount
except db_exc.DBReferenceError as ex:
LOG.warning('Failed to archive %(table)s: %(error)s',
{'table': table.__tablename__,
{'table': table.name,
'error': six.text_type(ex)})
return 0