659178a
From d01281a69e317d7bae4a7698edb6583b6310d5c1 Mon Sep 17 00:00:00 2001
659178a
From: David Lehman <dlehman@redhat.com>
659178a
Date: Tue, 19 Mar 2019 11:51:47 -0400
659178a
Subject: [PATCH] Ensure correct type of mpath cache member list.
659178a
659178a
Related: rhbz#1672971
659178a
---
659178a
 blivet/static_data/mpath_info.py | 7 +++++--
659178a
 1 file changed, 5 insertions(+), 2 deletions(-)
659178a
659178a
diff --git a/blivet/static_data/mpath_info.py b/blivet/static_data/mpath_info.py
659178a
index 49ba4709..64958ba8 100644
659178a
--- a/blivet/static_data/mpath_info.py
659178a
+++ b/blivet/static_data/mpath_info.py
659178a
@@ -42,8 +42,11 @@ def is_mpath_member(self, device):
659178a
         :param str device: path of the device to query
659178a
659178a
         """
659178a
-        if self._members is None and availability.BLOCKDEV_MPATH_PLUGIN.available:
659178a
-            self._members = set(blockdev.mpath.get_mpath_members())
659178a
+        if self._members is None:
659178a
+            if availability.BLOCKDEV_MPATH_PLUGIN.available:
659178a
+                self._members = set(blockdev.mpath.get_mpath_members())
659178a
+            else:
659178a
+                self._members = set()
659178a
659178a
         device = os.path.realpath(device)
659178a
         device = device[len("/dev/"):]