Reviewed: https://review.openstack.org/43621 Committed: http://github.com/openstack/nova/commit/89e18d8c64b11630d2f21563c95b01452057a897 Submitter: Jenkins Branch: master
commit 89e18d8c64b11630d2f21563c95b01452057a897 Author: Gary Kotton <email address hidden> Date: Sun Aug 25 04:55:40 2013 -0700
VMware: Handle cases when there are no hosts in cluster
When there are no hosts defined in a cluster the host value will be an empty string. For example:
obj_context: (RetrieveResult){ objects[] = (ObjectContent){ obj = (obj){ value = "domain-c185" _type = "ClusterComputeResource" } propSet[] = (DynamicProperty){ name = "host" val = "" }, }, }
This causes an data access exception.
The code will now raise an NoValidHost exception.
Fixes bug: 1197041
Change-Id: I75b1f069e0b27eebd63c280e36533354c04e246a
Reviewed: https:/ /review. openstack. org/43621 github. com/openstack/ nova/commit/ 89e18d8c64b1163 0d2f21563c95b01 452057a897
Committed: http://
Submitter: Jenkins
Branch: master
commit 89e18d8c64b1163 0d2f21563c95b01 452057a897
Author: Gary Kotton <email address hidden>
Date: Sun Aug 25 04:55:40 2013 -0700
VMware: Handle cases when there are no hosts in cluster
When there are no hosts defined in a cluster the host value will be an empty
string. For example:
},
}
This causes an data access exception.
The code will now raise an NoValidHost exception.
Fixes bug: 1197041
Change-Id: I75b1f069e0b27e ebd63c280e36533 354c04e246a