A recent update to common/scheduler/filters/extra_specs_ops.py in
Oslo added new 'is' operator to allow Boolean check. The original
commit message was:
"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."
Notice extra_specs_ops now relies on strutils from Olso, so this
change pull strutils from Oslo as well.
Reviewed: https:/ /review. openstack. org/23880 github. com/openstack/ cinder/ commit/ 6abb5733968c9bf 558a941c4d9cbd1 4e5ddf3768
Committed: http://
Submitter: Jenkins
Branch: master
commit 6abb5733968c9bf 558a941c4d9cbd1 4e5ddf3768
Author: Zhiteng Huang <email address hidden>
Date: Fri Mar 8 16:54:03 2013 +0800
Pull newly merged Olso update for 'is' operator
A recent update to common/ scheduler/ filters/ extra_specs_ ops.py in
Oslo added new 'is' operator to allow Boolean check. The original
commit message was:
"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."
Notice extra_specs_ops now relies on strutils from Olso, so this
change pull strutils from Oslo as well.
Fix bug: # 1146306
Change-Id: I83adf707c30274 a3862aa8034e72c 3361fd19952