Comment 2 for bug 1435668

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/167100
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7f5462777b32901adfe7f302e7161cd682eb2682
Submitter: Jenkins
Branch: master

commit 7f5462777b32901adfe7f302e7161cd682eb2682
Author: ghanshyam <email address hidden>
Date: Tue Mar 24 14:33:01 2015 +0900

    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