nova/doc/v3/api_samples/os-hypervisors
ghanshyam 7f5462777b Fix v2.1 hypervisor servers to return empty list
In v2.1, os-hypervisors/servers API returns empty servers list in
case where hypervisors does not have any servers.

But this is not case with v2 API. v2 API does not put 'servers' field
in response if it is empty.

v2.1 APIs should be same as v2 in all cases/scenarios.

This is bug fix so not putting as microversions, its just a change to
the v2.1 code so it is equivalent to v2. If later needed then, this can
be reverted back as current ways via microversion.

This was no best test coverage to catch this kind of issue.
This was caught while merging the v2 and v2.1 tests
- I5ddf3c54dd80a67f71762769d6130db41e772b01

Change-Id: I32e5cde65baeca71ec06b814b7db7aa7469eac64
Closes-Bug: #1435668
2015-03-24 23:54:23 +00:00
..
hypervisors-detail-resp.json API: Change the API cpu_info to be meaning ful. 2015-02-24 13:57:49 -08:00
hypervisors-list-resp.json Return status for compute node 2014-07-22 10:44:05 -07:00
hypervisors-search-resp.json Return status for compute node 2014-07-22 10:44:05 -07:00
hypervisors-servers-resp.json Fix v2.1 hypervisor servers to return empty list 2015-03-24 23:54:23 +00:00
hypervisors-show-resp.json API: Change the API cpu_info to be meaning ful. 2015-02-24 13:57:49 -08:00
hypervisors-statistics-resp.json Add V3 API samples for ext-status,hypervisor,admin-actions 2013-09-22 10:16:10 +08:00
hypervisors-uptime-resp.json Return status for compute node 2014-07-22 10:44:05 -07:00