Blob Blame History Raw
From dfeaf948d05c20a243c64589970f45ae98b94dfb Mon Sep 17 00:00:00 2001
From: David Lehman <dlehman@redhat.com>
Date: Thu, 2 May 2019 13:03:54 -0400
Subject: [PATCH] Only call mpath plugin when it is available. (#1697378)

---
 blivet/populator/populator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blivet/populator/populator.py b/blivet/populator/populator.py
index cdb5b79f..ebe205e6 100644
--- a/blivet/populator/populator.py
+++ b/blivet/populator/populator.py
@@ -44,6 +44,7 @@ from .. import udev
 from .. import util
 from ..flags import flags
 from ..storage_log import log_method_call
+from ..tasks import availability
 from ..threads import SynchronizedMeta
 from .helpers import get_device_helper, get_format_helper
 from ..static_data import lvs_info, pvs_info, luks_data, mpath_members
@@ -426,7 +427,7 @@ class PopulatorMixin(object):
         self.drop_lvm_cache()
         mpath_members.drop_cache()
 
-        if flags.auto_dev_updates:
+        if flags.auto_dev_updates and availability.BLOCKDEV_MPATH_PLUGIN.available:
             blockdev.mpath.set_friendly_names(flags.multipath_friendly_names)
 
         self.setup_disk_images()
-- 
2.20.1