]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Pull newly merged Olso update for 'is' operator
authorZhiteng Huang <zhiteng.huang@intel.com>
Fri, 8 Mar 2013 08:54:03 +0000 (16:54 +0800)
committerZhiteng Huang <zhiteng.huang@intel.com>
Fri, 8 Mar 2013 05:07:14 +0000 (13:07 +0800)
commit6abb5733968c9bf558a941c4d9cbd14e5ddf3768
tree7ef1a91452fab98f057ee9ea3f926581acdd58a0
parentaf5d4b323597e3654b4e41af5ee19f5fe395ae35
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: I83adf707c30274a3862aa8034e72c3361fd19952
cinder/openstack/common/scheduler/filters/extra_specs_ops.py
cinder/openstack/common/strutils.py [new file with mode: 0644]
openstack-common.conf