From 1450b09e8da1789e99fb31d4f09792d2c21a181d Mon Sep 17 00:00:00 2001 From: Yaroslav Lobankov Date: Fri, 27 Nov 2015 18:04:25 +0300 Subject: [PATCH] [Verify] `rally verify install/reinstall` with --no-tempest-venv The `rally verify start` command can accept the --system-wide-install flag. It is intended to provide a possibility to use the local environment instead of Tempest virtual environment. The flag has a strange name, and it was decided to use --no-tempest-venv for the `rally verify install/reinstall` commands instead of --system-wide-install. The next patch will be dedicated to rename --system-wide-install into --no-tempest-venv that is more logical. In addition: 1. Some doc strings were changed to keep consistency between them; 2. Some doc strings were changed to allow users to better understand for what options are. 3. The is_installed() method was changed to fix the following issue: this method didn't work correctly when the --no-tempest-venv flag was passed to `rally verify install` because it always checked existance of .venv directory. Change-Id: I5541ac4b417152eb15b1f6277efa06c9879b4180 --- etc/rally.bash_completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/rally.bash_completion b/etc/rally.bash_completion index 521e8fec..79e0728a 100644 --- a/etc/rally.bash_completion +++ b/etc/rally.bash_completion @@ -50,9 +50,9 @@ _rally() OPTS["verify_detailed"]="--uuid --sort-by" OPTS["verify_genconfig"]="--deployment --tempest-config --override" OPTS["verify_import"]="--deployment --set --file --no-use" - OPTS["verify_install"]="--deployment --source" + OPTS["verify_install"]="--deployment --source --no-tempest-venv" OPTS["verify_list"]="" - OPTS["verify_reinstall"]="--deployment --tempest-config --source" + OPTS["verify_reinstall"]="--deployment --tempest-config --source --no-tempest-venv" OPTS["verify_results"]="--uuid --html --json --output-file" OPTS["verify_show"]="--uuid --sort-by --detailed" OPTS["verify_showconfig"]="--deployment" @@ -87,4 +87,4 @@ _rally() return 0 } -complete -o filenames -F _rally rally +complete -o filenames -F _rally rally \ No newline at end of file