diff options
author | Sam Morrison <sorrison@gmail.com> | 2018-09-05 11:03:48 +1000 |
---|---|---|
committer | Sam Morrison <sorrison@gmail.com> | 2018-09-05 11:26:04 +1000 |
commit | 37722c7f4f6df433489a62a19c318dceb4739d08 (patch) | |
tree | a21e6279b286bd4ae0562458df08d369aca9a573 | |
parent | b612a63c36844b82971c72a1092a005fdd7e0860 (diff) | |
download | nova-37722c7f4f6df433489a62a19c318dceb4739d08.tar.gz |
Fix DB archiver AttributeError due to wrong table name attribute used
Change-Id: I658a12b3672eb8b1e97522259e9a212b3e6ab161
Closes-bug: #1790750
(cherry picked from commit d0657f4acf30f77ae978bf95a9d7ce76fe97a56c)
-rw-r--r-- | nova/db/sqlalchemy/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 0789515e74..7a85b25207 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -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 |