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

[PATCH 3/3] DiskDevice.__init__ expects an "exists" parameter, so add it.



---
 storage/devices.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 1598497..62bebd0 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -728,7 +728,8 @@ class DiskDevice(StorageDevice):
 
     def __init__(self, device, format=None,
                  size=None, major=None, minor=None, sysfsPath='',
-                 parents=None, serial=None, vendor="", bus=""):
+                 parents=None, serial=None, vendor="", bus="",
+                 exists=True):
         """ Create a DiskDevice instance.
 
             Arguments:
@@ -752,7 +753,7 @@ class DiskDevice(StorageDevice):
             DiskDevices always exist.
         """
         StorageDevice.__init__(self, device, format=format, size=size,
-                               major=major, minor=minor, exists=True,
+                               major=major, minor=minor, exists=exists,
                                sysfsPath=sysfsPath, parents=parents,
                                serial=serial, vendor=vendor, bus=bus)
 
-- 
1.6.5.1


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