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>
(
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