]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
api/lvm: rewrite a condition 31229/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:48:34 +0000 (17:48 +0100)
commitd2cbdc6cee90e8fb7a346453ba6881167f4e1e7b
treecaed2079c04fcf7a7189b20e996bbe6c3c417e40
parentb46933bf7451a3c16264a07457d9241eafba8e34
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