From f5c2430876d57908936aa7e5ab3bb5a5cb97c296 Mon Sep 17 00:00:00 2001 From: melanie witt Date: Wed, 28 Aug 2019 05:10:51 +0000 Subject: Remove unused args from archive_deleted_rows calls As of commit 1c9de9c7779b1faf9d9542b3e5bd20da70067365, we no longer pass any args to the archive_deleted_rows function, so we can remove the argument list from the function. Change-Id: I73b2f716908088b137102631f9360939a1d7341a --- gate/post_test_hook.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gate') diff --git a/gate/post_test_hook.sh b/gate/post_test_hook.sh index eeab72115c..f51b181f10 100755 --- a/gate/post_test_hook.sh +++ b/gate/post_test_hook.sh @@ -5,7 +5,7 @@ MANAGE="/usr/local/bin/nova-manage" function archive_deleted_rows { # NOTE(danms): Run this a few times to make sure that we end # up with nothing more to archive - if ! $MANAGE $* db archive_deleted_rows --verbose --before "$(date -d yesterday)" 2>&1 | grep 'Nothing was archived'; then + if ! $MANAGE db archive_deleted_rows --verbose --before "$(date -d yesterday)" 2>&1 | grep 'Nothing was archived'; then echo "Archiving yesterday data should have done nothing" return 1 fi @@ -14,9 +14,9 @@ function archive_deleted_rows { # This is just a test wrinkle to make sure we're covering the # non-all-cells (cell0) case, as we're not passing in the cell1 # config. - $MANAGE $* db archive_deleted_rows --verbose --max_rows 50 --before "$(date -d tomorrow)" + $MANAGE db archive_deleted_rows --verbose --max_rows 50 --before "$(date -d tomorrow)" else - $MANAGE $* db archive_deleted_rows --verbose --max_rows 1000 --before "$(date -d tomorrow)" --all-cells + $MANAGE db archive_deleted_rows --verbose --max_rows 1000 --before "$(date -d tomorrow)" --all-cells fi RET=$? if [[ $RET -gt 1 ]]; then -- cgit v1.2.1