Merge "Fix DB archiver AttributeError due to wrong table name attribute used" into stable/ocata

This commit is contained in:
Zuul 2018-10-02 22:16:07 +00:00 committed by Gerrit Code Review
commit 55cf7d192a
1 changed files with 1 additions and 1 deletions

View File

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