summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-11 05:47:32 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-11 05:47:32 +0000
commita4d0045426f03b17bb1693ea16d897158b4da809 (patch)
tree80ccadc9ca0f5013e3ed305ed98185e6ebafa91a /fsset.py
parent16ae54d3795f3b9173bf190d32771a29d548e81b (diff)
downloadanaconda-a4d0045426f03b17bb1693ea16d897158b4da809.tar.gz
anaconda-a4d0045426f03b17bb1693ea16d897158b4da809.tar.xz
anaconda-a4d0045426f03b17bb1693ea16d897158b4da809.zip
add string representation of a fsset entry because I'm tired of figuring out what they are by hand
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index e4f150427..04aa2edf8 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1370,6 +1370,19 @@ class FileSystemSetEntry:
def setLabel (self, label):
self.label = label
+ def __str__(self):
+ if not self.mountpoint:
+ mntpt = "None"
+ else:
+ mntpt = self.mountpoint
+
+ str = ("fsentry -- device: %(device)s mountpoint: %(mountpoint)s\n"
+ " fsystem: %(fsystem)s format: %(format)s\n" %
+ {"device": self.device.getDevice(), "mountpoint": mntpt,
+ "fsystem": self.fsystem.getName(), "format": self.format})
+ return str
+
+
class Device:
def __init__(self):
self.device = "none"