[blivet:master 13/17] Do not bother to set device.format.mountopts.

mulhern amulhern at redhat.com
Tue Jan 6 20:38:15 UTC 2015


It will be set via the assignment to device.format.options.

Also, remove enclosing try because options is defined in DeviceFormat.

This should not change observable behavior at all. Previously mountopts
was sometimes set twice to the same value, now it will just be set once.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/__init__.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/blivet/__init__.py b/blivet/__init__.py
index f443dc3..5c834f7 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -2425,13 +2425,8 @@ class FSSet(object):
 
         if device.format.mountable:
             device.format.mountpoint = mountpoint
-            device.format.mountopts = options
 
-        # is this useful?
-        try:
-            device.format.options = options
-        except AttributeError:
-            pass
+        device.format.options = options
 
         return device
 
-- 
1.9.3



More information about the anaconda-patches mailing list