From e72c7ea12442fb614562dbc2ab3095a5b6aa4e91 Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Wed, 6 Jul 2016 16:12:26 +0800 Subject: 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 --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit 1.2.3-korg