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

[PATCH] Don't drop discovered format with unknown devices when parsing fstab.



This is just a clean-up for consistency.
---
 storage/__init__.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index d7b53b6..01ed14e 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1335,9 +1335,9 @@ class FSSet(object):
             format = getFormat(fstype)
             if devspec == "none" or \
                isinstance(format, get_device_format_class("nodev")):
-                device = NoDevice(format)
+                device = NoDevice(format=format)
             else:
-                device = StorageDevice(devspec)
+                device = StorageDevice(devspec, format=format)
 
         if device is None:
             log.error("failed to resolve %s (%s) from fstab" % (devspec,
-- 
1.6.0.6


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