]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
api/lvm: rewrite a condition 31228/head
authorRishabh Dave <ridave@redhat.com>
Tue, 3 Sep 2019 13:06:23 +0000 (18:36 +0530)
committerJan Fajerski <jfajerski@suse.com>
Tue, 29 Oct 2019 16:46:29 +0000 (17:46 +0100)
commitee46b124ef320acad6c03571548ce573ce3f9dfd
treecf88d7b55d7c79618aa4007fa221a7d7119f65e6
parent05479e8a5a310bd7b03e35cd92d508788a4f5aff
api/lvm: rewrite a condition

Create the list of logical volumes if the list passed in arguments is
empty and rewrite the condition to make it more readable.

Fixes: https://tracker.ceph.com/issues/41649
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit d1f1bfd3635501090f4069be59e0bcde94dd64ec)
src/ceph-volume/ceph_volume/api/lvm.py