diff options
author | JingLu5 <lvjing5@huawei.com> | 2017-06-26 03:18:56 +0000 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-06-26 06:03:02 +0000 |
commit | 2f9126f350bff38eec2ff452866e5a2ca3d0bdd7 (patch) | |
tree | 8687bf3cb6d7b0a30da645eabe0a95c5e6b24b02 /tests/ci/clean_images.sh | |
parent | abc37694c6b0d1d80fa5942386d41f69d1bc085a (diff) |
Bugfix: remove double quote around SECURE variable
JIRA: YARDSTICK-689
This patch remove the double quote around the SECURE varibale as it may cause the fowllowing error:
$ openstack "${SECURE}" image list
openstack: ' image list' is not an openstack command. See 'openstack --help'.
Did you mean one of these?
access token create
address scope create
address scope delete
address scope list
address scope set
address scope show
aggregate add host
aggregate create
...
Change-Id: Ibb22e85b3dd89b0e3b62821bd5ebe4f155886ffc
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit b04755b5148daf36db436dc066e1bef2c93f1879)
Diffstat (limited to 'tests/ci/clean_images.sh')
-rwxr-xr-x | tests/ci/clean_images.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ci/clean_images.sh b/tests/ci/clean_images.sh index cb5410ab2..f25006487 100755 --- a/tests/ci/clean_images.sh +++ b/tests/ci/clean_images.sh @@ -21,18 +21,18 @@ cleanup() SECURE="" fi - if ! openstack "${SECURE}" image list; then + if ! openstack ${SECURE} image list; then return fi - for image in $(openstack "${SECURE}" image list | grep -e cirros-0.3.5 -e yardstick-image -e Ubuntu-16.04 \ + for image in $(openstack ${SECURE} image list | grep -e cirros-0.3.5 -e yardstick-image -e Ubuntu-16.04 \ | awk '{print $2}'); do echo "Deleting image $image..." - openstack "${SECURE}" image delete $image || true + openstack ${SECURE} image delete $image || true done - openstack "${SECURE}" flavor delete yardstick-flavor &> /dev/null || true - openstack "${SECURE}" flavor delete storperf &> /dev/null || true + openstack ${SECURE} flavor delete yardstick-flavor &> /dev/null || true + openstack ${SECURE} flavor delete storperf &> /dev/null || true } main() |