]> 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 19:06:32 +0000 (14:06 -0500)
commit5f30a1edff98f788d99018c3020e9e25fc7e8e4f
tree136d2dcb74584b30ca09db90279ed5e5f13434ee
parent0f6ed6c8aa1f0b9b6909868e32d2df740d367d58
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>
(cherry picked from commit 28cb13a970909dc8efe508aee18f47e0fb3fdde3)
src/ceph-volume/ceph_volume/util/disk.py