libvirt: Remove dead code path in method clear_volume
In oslo.config StrOpt provide parameter choices, that means the option's
value must be in the choices, otherewise an exception will be raised.
That means volume_clear always in ('none', 'zero', 'shred'), this commit
removes the code path which never run.
Reviewed: https:/ /review. openstack. org/200808 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6d86a3eab6a 1ce735b79bbaab8 7c8da390e3393c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6d86a3eab6a1ce7 35b79bbaab87c8d a390e3393c
Author: ChangBo Guo(gcb) <email address hidden>
Date: Sat Jul 11 17:27:30 2015 +0800
libvirt: Remove dead code path in method clear_volume
In oslo.config StrOpt provide parameter choices, that means the option's
value must be in the choices, otherewise an exception will be raised.
That means volume_clear always in ('none', 'zero', 'shred'), this commit
removes the code path which never run.
Change-Id: I88e1034a391230 cc781cd66911381 be2fdea046d
Partial-Bug: #1471168