]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix for typo in Purity Host create/delete methods in PureISCSIDriver
authorPatrick East <patrick.east@purestorage.com>
Fri, 5 Dec 2014 23:25:21 +0000 (15:25 -0800)
committerPatrick East <patrick.east@purestorage.com>
Sun, 7 Dec 2014 01:24:55 +0000 (17:24 -0800)
commitce23f238fb8ce89b35d7da22ef06f5a61cbfba47
tree709ed0a5747e81725494654fb8a46a86887eba60
parentce5f8a1aada497657a5117266f6994f8bc6acc10
Fix for typo in Purity Host create/delete methods in PureISCSIDriver

When refactoring the string manipulation methods there was a typo
introduced in:

https://git.openstack.org/cgit/openstack/cinder/commit/?
id=1ebe1bddd0a02e9efaa05c8ec9d71a299b6877e1

That change modified the methods to create/delete hosts in purity. The
REST API url was incorrectly pointing to /host/<host_name>/volume
instead of /host/<host_name>

This commit fixes the url and adds in unit tests to prevent this type of
regression in the future.

Change-Id: Iba24fc0a36e01e1d163b398bf32c41fbb9103861
Closes-Bug: 1399820
cinder/tests/test_pure.py
cinder/volume/drivers/pure.py