summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2016-07-06 16:12:26 +0800
committerwenjuan dong <dong.wenjuan@zte.com.cn>2016-07-06 13:09:26 +0000
commite72c7ea12442fb614562dbc2ab3095a5b6aa4e91 (patch)
treeefc3054a65cf09de5989dfde03985f19d8692988 /tests/run.sh
parentf2acc144d23dd1caa2af6d4e45425e42c649096b (diff)
add version para to use `openstack server show` cli
We should add the version para to use `openstack server show` cli to get `host_status` Change-Id: Ie0332e3766cb88f687fa66bcd5d8218f311e8add Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 3d6c77a3..2fdc71e8 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -224,7 +224,7 @@ check_host_status() {
(
change_to_doctor_user
- host_status_line=$(openstack server show $VM_NAME | grep "host_status")
+ host_status_line=$(openstack --os-compute-api-version 2.16 server show $VM_NAME | grep "host_status")
if [[ $? -ne 0 ]] ; then
echo "ERROR: host_status not configured for owner in Nova policy.json"
exit 1