]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Don't throw ValueError for invalid volume id
authorEric Harney <eharney@redhat.com>
Fri, 24 May 2013 15:44:13 +0000 (11:44 -0400)
committerEric Harney <eharney@redhat.com>
Fri, 24 May 2013 15:57:45 +0000 (11:57 -0400)
commit6c80ab5bdbf221b62faf0084c18d54daf3f2afa1
treee9b8bdc2e0d3815523dee2a1f271f1c417a66e83
parent3e914889c7a3ed5dfcebdceb2f784fb651714cc9
Don't throw ValueError for invalid volume id

If a user runs something like "cinder-manage volume delete a1234",
a ValueError is thrown because it fails to cast to int.
Catch this and treat the parameter as an id which will result in a
later VolumeNotFound error rather than breaking this way.

Change-Id: I95a9b9d7628cebe4b6d855ea925b0ad3a5f1c4c4
bin/cinder-manage