Include protected attribute in StorageDevice.__str__.
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
"
" format = %(format)s
"
- " major = %(major)s minor = %(minor)s exists = %(exists)s
"
+ " major = %(major)s minor = %(minor)s exists = %(exists)s"
+ " protected = %(protected)s
"
" sysfs path = %(sysfs)s partedDevice = %(partedDevice)s
"
" target size = %(targetSize)s path = %(path)s
"
" 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
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|