add version para to use `openstack server show` cli
[doctor.git] / tests / run.sh
index 3d6c77a..2fdc71e 100755 (executable)
@@ -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