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

[PATCH 2/4] Revert "Make sure new devices' formats have their device attr set."



This reverts commit c8ffb16a0438c04d049823a36f76764c6fbace33.
---
 pyanaconda/storage/__init__.py |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index d5cbcf4..9904581 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -820,9 +820,7 @@ class Storage(object):
         else:
             name = "req%d" % self.nextID
 
-        device = PartitionDevice(name, *args, **kwargs)
-        device.format.device = device.path
-        return device
+        return PartitionDevice(name, *args, **kwargs)
 
     def newMDArray(self, *args, **kwargs):
         """ Return a new MDRaidArrayDevice instance for configuring. """
@@ -841,9 +839,7 @@ class Storage(object):
         else:
             name = "md%d" % kwargs["minor"]
 
-        device = MDRaidArrayDevice(name, *args, **kwargs)
-        device.format.device = device.path
-        return device
+        return MDRaidArrayDevice(name, *args, **kwargs)
 
     def newVG(self, *args, **kwargs):
         """ Return a new LVMVolumeGroupDevice instance. """
@@ -889,9 +885,7 @@ class Storage(object):
         if name in [d.name for d in self.devices]:
             raise ValueError("name already in use")
 
-        device = LVMLogicalVolumeDevice(name, vg, *args, **kwargs)
-        device.format.device = device.path
-        return device
+        return LVMLogicalVolumeDevice(name, vg, *args, **kwargs)
 
     def createDevice(self, device):
         """ Schedule creation of a device.
-- 
1.7.4.4


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