commit 761b15fd00d77d5e2fd6d163ba677b3c3105f9d7
Author: Matt Riedemann <email address hidden>
Date: Thu Nov 16 15:34:32 2017 -0500
Fix TypeError in nova-manage db archive_deleted_rows
If you run the archive_deleted_rows command without the
--max_rows option name but just pass in a value, it will
fail with a TypeError:
venv runtests: commands[0] | nova-manage db archive_deleted_rows 1000
An error has occurred:
Traceback (most recent call last):
File "/home/user/git/nova/nova/cmd/manage.py", line 1924, in main
ret = fn(*fn_args, **fn_kwargs)
TypeError: archive_deleted_rows() got multiple values for \ keyword argument 'max_rows'
This fixes it by setting a dest and moving the default to the kwarg.
Change-Id: I1e60c571a8e9b875f89af6695f5427c801c8c53b
Closes-Bug: #1732593
(cherry picked from commit 0f464e55a856477a5b77ce8ce7efacf9bc139735)
Reviewed: https:/ /review. openstack. org/525629 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=761b15fd00d 77d5e2fd6d163ba 677b3c3105f9d7
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 761b15fd00d77d5 e2fd6d163ba677b 3c3105f9d7
Author: Matt Riedemann <email address hidden>
Date: Thu Nov 16 15:34:32 2017 -0500
Fix TypeError in nova-manage db archive_ deleted_ rows
If you run the archive_ deleted_ rows command without the
--max_rows option name but just pass in a value, it will
fail with a TypeError:
venv runtests: commands[0] | nova-manage db archive_ deleted_ rows 1000 user/git/ nova/nova/ cmd/manage. py", line 1924, in main deleted_ rows() got multiple values for \
keyword argument 'max_rows'
An error has occurred:
Traceback (most recent call last):
File "/home/
ret = fn(*fn_args, **fn_kwargs)
TypeError: archive_
This fixes it by setting a dest and moving the default to the kwarg.
Change-Id: I1e60c571a8e9b8 75f89af6695f542 7c801c8c53b a5b77ce8ce7efac f9bc139735)
Closes-Bug: #1732593
(cherry picked from commit 0f464e55a856477