]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Extra_spec containing '/' can't be deleted
authorAlejandro Emanuel Paredes <alejandro.e.paredes@intel.com>
Wed, 22 Jan 2014 20:19:19 +0000 (15:19 -0500)
committerAlejandro Emanuel Paredes <alejandro.e.paredes@intel.com>
Mon, 27 Jan 2014 19:19:39 +0000 (14:19 -0500)
commit5ec6f8f8e8b88f48300e66369840c2fafd06f4c5
treeea4cf98c74cdf97e5932d42e966867bcae2aa019
parentcbc6e8ef5da434d0158b1cb8545c5182c5b96cdf
Extra_spec containing '/' can't be deleted

This patch validates the keys of the extra specs
before setting them.
This will make possible to remove those keys.
It allows alphanumeric characters, underscores,
periods, colons and hyphens.

Change-Id: Ic2e5d7ce42c8ecb7ee45cd168bd008035fd4bbdf
Closes-Bug: #1259711
cinder/api/common.py
cinder/api/contrib/types_extra_specs.py
cinder/tests/api/contrib/test_types_extra_specs.py