[PATCH 2/8] Include protected attribute in StorageDevice.__str__.

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux