]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume util.disk fix issue when capturing partition information
authorAlfredo Deza <adeza@redhat.com>
Tue, 27 Nov 2018 14:26:33 +0000 (09:26 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 30 Nov 2018 17:19:40 +0000 (12:19 -0500)
commit28cb13a970909dc8efe508aee18f47e0fb3fdde3
tree77b24d83916d1d09100c07ec0ad2f5d1542f3cfc
parent0d2a9a40d2c301039d571101d1e92a82058a51e0
ceph-volume util.disk fix issue when capturing partition information

Before, the `if` condition meant that it would only work when the output
was '1', which is incorrect as that would only happen if a partition was
the first one, ignoring any other partition. The contents of that file
is the partition number, not a boolean to tell if it is a partition or
not.

It now includes the `holders` file contents which is needed for
dm-mapper work

Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/util/disk.py