Blob Blame History Raw
From d01281a69e317d7bae4a7698edb6583b6310d5c1 Mon Sep 17 00:00:00 2001
From: David Lehman <dlehman@redhat.com>
Date: Tue, 19 Mar 2019 11:51:47 -0400
Subject: [PATCH] Ensure correct type of mpath cache member list.

Related: rhbz#1672971
---
 blivet/static_data/mpath_info.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/blivet/static_data/mpath_info.py b/blivet/static_data/mpath_info.py
index 49ba4709..64958ba8 100644
--- a/blivet/static_data/mpath_info.py
+++ b/blivet/static_data/mpath_info.py
@@ -42,8 +42,11 @@ def is_mpath_member(self, device):
         :param str device: path of the device to query

         """
-        if self._members is None and availability.BLOCKDEV_MPATH_PLUGIN.available:
-            self._members = set(blockdev.mpath.get_mpath_members())
+        if self._members is None:
+            if availability.BLOCKDEV_MPATH_PLUGIN.available:
+                self._members = set(blockdev.mpath.get_mpath_members())
+            else:
+                self._members = set()

         device = os.path.realpath(device)
         device = device[len("/dev/"):]