And then I still have to ignore the pylint warning, because it thinks that
fmt might have too broad of a type.
---
blivet/osinstall.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/osinstall.py b/blivet/osinstall.py
index 1a4a665..1c63302 100644
--- a/blivet/osinstall.py
+++ b/blivet/osinstall.py
@@ -413,9 +413,9 @@ class FSSet(object):
# the device's format we found matches what's in the fstab
ftype = getattr(fmt, "mountType", fmt.type)
dtype = getattr(device.format, "mountType", device.format.type)
- if fstype != "auto" and ftype != dtype:
+ if hasattr(fmt, "testMount") and fstype != "auto" and ftype
!= dtype:
log.info("fstab says %s at %s is %s", dtype, mountpoint, ftype)
- if fmt.testMount():
+ if fmt.testMount(): # pylint: disable=no-member
device.format = fmt
else:
device.teardown()
--
2.2.2