[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 2/8] Include protected attribute in StorageDevice.__str__.
- From: David Lehman <dlehman redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 2/8] Include protected attribute in StorageDevice.__str__.
- Date: Wed, 15 Jun 2011 17:32:50 -0500
Related: rhbz#704571
---
pyanaconda/storage/devices.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index a125652..8c78aad 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -582,7 +582,8 @@ class StorageDevice(Device):
s = Device.__repr__(self)
s += (" uuid = %(uuid)s size = %(size)s\n"
" format = %(format)s\n"
- " major = %(major)s minor = %(minor)s exists = %(exists)s\n"
+ " major = %(major)s minor = %(minor)s exists = %(exists)s"
+ " protected = %(protected)s\n"
" sysfs path = %(sysfs)s partedDevice = %(partedDevice)s\n"
" target size = %(targetSize)s path = %(path)s\n"
" format args = %(formatArgs)s originalFormat = %(origFmt)s" %
@@ -590,6 +591,7 @@ class StorageDevice(Device):
"major": self.major, "minor": self.minor, "exists": self.exists,
"sysfs": self.sysfsPath, "partedDevice": self.partedDevice,
"targetSize": self.targetSize, "path": self.path,
+ "protected": self.protected,
"formatArgs": self.formatArgs, "origFmt": self.originalFormat.type})
return s
--
1.7.3.4
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]