FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 06-15-2011, 10:32 PM
David Lehman
 
Default 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
 

Thread Tools




All times are GMT. The time now is 10:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org