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

[PATCH 2/3] Reset device attr after using temp dev. (#722952)



Assigning a format to a StorageDevice changes its device attr to
point at the StorageDevice's path value. In the case of these
temporary devices this makes a mess. Clean it up.
---
 pyanaconda/iw/lvm_dialog_gui.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iw/lvm_dialog_gui.py b/pyanaconda/iw/lvm_dialog_gui.py
index 2e6072e..5b64c1a 100644
--- a/pyanaconda/iw/lvm_dialog_gui.py
+++ b/pyanaconda/iw/lvm_dialog_gui.py
@@ -792,7 +792,9 @@ class VolumeGroupEditor:
                     templv.targetSize = targetSize
 
             if format.exists and format.mountable and format.mountpoint:
+                orig_dev = format.device
                 tempdev = StorageDevice('tmp', format=format)
+                tempdev.format.device = orig_dev
                 if self.storage.formatByDefault(tempdev):
                     reason = self.storage.mustFormat(tempdev)
                     if reason:
-- 
1.7.3.4


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