diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-11 05:47:32 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-11 05:47:32 +0000 |
commit | a4d0045426f03b17bb1693ea16d897158b4da809 (patch) | |
tree | 80ccadc9ca0f5013e3ed305ed98185e6ebafa91a /fsset.py | |
parent | 16ae54d3795f3b9173bf190d32771a29d548e81b (diff) | |
download | anaconda-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.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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" |