[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Require a format to have a mountpoint before testing for RO (#565879).



Otherwise, we traceback trying to mount /mnt/sysimage/None or something
stupid like that.
---
 storage/__init__.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index e23e826..4e3bbf7 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1734,6 +1734,7 @@ class FSSet(object):
         space = []
         for device in self.devices:
             if not device.format.mountable or \
+               not device.format.mountpoint or \
                not device.format.status:
                 continue
 
-- 
1.6.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]