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.
Reviewed: https:/ /review. openstack. org/23679 github. com/openstack/ oslo-incubator/ commit/ 2e8b5e844643254 2901b3c814670a4 c67e629137
Committed: http://
Submitter: Jenkins
Branch: master
commit 2e8b5e844643254 2901b3c814670a4 c67e629137
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: Id0e6dcfb71eb09 43a16bba551ec23 c4d57206550