]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes attribute content checking
authorJay Wang <jwang@nimblestorage.com>
Tue, 27 Jan 2015 20:02:59 +0000 (12:02 -0800)
committerJay Wang <jwang@nimblestorage.com>
Sat, 31 Jan 2015 03:57:15 +0000 (19:57 -0800)
commit7f88689a2038b50d0f7b7f01c5086e648f15e81a
tree6bc3e82380bdac15c58195c7815f6c39d2612b03
parenta36100bd34a22ddc3b620947809a41d328b1e949
Fixes attribute content checking

Use proper way to check the volume attribute contents in display_name
and display_description. If they are not empty, translate them to
volume backend description. Modify other places where return empty
string makes sense than None as well as the return value checking.

Closes-Bug: 1414247
Change-Id: I87b8d09baf75b227b479f8a79ace90a85cf84177
cinder/tests/test_nimble.py
cinder/volume/drivers/nimble.py