The multipath sanity checks of get_journal_osd_uuid must not try to
verify the partition type when the device is not a partition.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
if not stat.S_ISBLK(mode):
raise Error('%s is not a block device' % path)
- if (get_partition_type(path) == MPATH_JOURNAL_UUID and
+ if (is_partition(path) and
+ get_partition_type(path) == MPATH_JOURNAL_UUID and
not is_mpath(path)):
raise Error('%s is not a multipath block device' %
path)