Remove db layer hard-code permission checks for archive_deleted_rows*
The db calls archive_deleted_rows* are only used by "nova-manage db archive_deleted_rows". There isn't any REST API entry for those db calls. So remove the hard-code permission checks directly. Partially implements bp nova-api-policy-final-part Change-Id: Ic211f456b894e3f8a687ecdff0a7c19ed76022ed
This commit is contained in:
@@ -5881,7 +5881,6 @@ def task_log_end_task(context, task_name, period_beginning, period_ending,
|
||||
raise exception.TaskNotRunning(task_name=task_name, host=host)
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def archive_deleted_rows_for_table(context, tablename, max_rows):
|
||||
"""Move up to max_rows rows from one tables to the corresponding
|
||||
shadow table. The context argument is only used for the decorator.
|
||||
@@ -5950,7 +5949,6 @@ def archive_deleted_rows_for_table(context, tablename, max_rows):
|
||||
return rows_archived
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def archive_deleted_rows(context, max_rows=None):
|
||||
"""Move up to max_rows rows from production tables to the corresponding
|
||||
shadow tables.
|
||||
|
||||
Reference in New Issue
Block a user