Comment 3 for bug 1146306

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

Reviewed: https://review.openstack.org/23679
Committed: http://github.com/openstack/oslo-incubator/commit/2e8b5e8446432542901b3c814670a4c67e629137
Submitter: Jenkins
Branch: master

commit 2e8b5e8446432542901b3c814670a4c67e629137
Author: Avishay Traeger <email address hidden>
Date: Wed Mar 6 12:21:31 2013 +0200

    Add 'is' operator to extra specs ops.

    Boolean values for capabilities don't work because extra_specs are
    all converted to unicode. The scheduler will then check, for example,
    if the boolean 'True' is equal to the unicode string 'True', and will
    always return False. This patch allows admins to specify '<is> True'
    in extra_specs, which will compare successfully to boolean True.

    Fixes bug: 1146306

    Change-Id: Id0e6dcfb71eb0943a16bba551ec23c4d57206550