]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware:Unquote folder name for folder exists check
authorVipin Balachandran <vbala@vmware.com>
Thu, 14 Aug 2014 09:39:40 +0000 (15:09 +0530)
committerVipin Balachandran <vbala@vmware.com>
Mon, 29 Sep 2014 12:33:19 +0000 (18:03 +0530)
commitf668b347ca181229fab4b89fda25f1aadfbfdef1
tree0c36c705e80843bf2c77fad484e92a064d72f0d4
parentbfd861ab822147624b7f0cfd47e1ecc43787e7bf
VMware:Unquote folder name for folder exists check

vCenter server escapes special characters in the folder name using URL
encoding and returns back the encoded string while querying. This causes
the check for folder existence to return false. Therefore, folder
creation is reattempted which eventually fails. This patch fixes the
problem by decoding the folder name returned by vCenter before
comparison.

Change-Id: I40aa6f42ea0d85fbfcb40970c55b20e13ea46522
Closes-Bug: #1356794
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/volumeops.py