diff options
author | David Lehman <dlehman@redhat.com> | 2009-12-15 18:40:05 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-12-16 12:26:38 -0600 |
commit | 9347d0d88be25aba4ae0ee37258c0c70ffe02af3 (patch) | |
tree | 44c3dfc1ea85d54441a667ac4986e1061c2fee1b /storage/formats/fs.py | |
parent | d4ac61a96989768805769777e6642d42a0fb4edb (diff) | |
download | anaconda-9347d0d88be25aba4ae0ee37258c0c70ffe02af3.tar.gz anaconda-9347d0d88be25aba4ae0ee37258c0c70ffe02af3.tar.xz anaconda-9347d0d88be25aba4ae0ee37258c0c70ffe02af3.zip |
Add __str__ methods to the DeviceFormat classes.
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r-- | storage/formats/fs.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py index 7c861a438..239386dc3 100644 --- a/storage/formats/fs.py +++ b/storage/formats/fs.py @@ -161,6 +161,16 @@ class FS(DeviceFormat): if self.supported: self.loadModule() + def __str__(self): + s = DeviceFormat.__str__(self) + s += (" mountpoint = %(mountpoint)s mountopts = %(mountopts)s\n" + " label = %(label)s size = %(size)s" + " targetSize = %(targetSize)s\n" % + {"mountpoint": self.mountpoint, "mountopts": self.mountopts, + "label": self.label, "size": self._size, + "targetSize": self.targetSize}) + return s + def _setTargetSize(self, newsize): """ Set a target size for this filesystem. """ if not self.exists: |