summaryrefslogtreecommitdiffstats
path: root/cobbler/item_profile.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-09 12:30:53 -0400
committerJim Meyering <jim@meyering.net>2006-05-09 12:30:53 -0400
commit4494a9f367838913f1898faef81ba27a849008aa (patch)
tree950b946f154f40a754a62a94a0536e9e5b32922d /cobbler/item_profile.py
parent804a564ac24ff22cd46583fa98d8140a8b10f476 (diff)
downloadthird_party-cobbler-4494a9f367838913f1898faef81ba27a849008aa.tar.gz
third_party-cobbler-4494a9f367838913f1898faef81ba27a849008aa.tar.xz
third_party-cobbler-4494a9f367838913f1898faef81ba27a849008aa.zip
Simplified the command line, made a better 'list' function, some string and exception
cleanup.
Diffstat (limited to 'cobbler/item_profile.py')
-rw-r--r--cobbler/item_profile.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py
index 33cd3a3..22b56e9 100644
--- a/cobbler/item_profile.py
+++ b/cobbler/item_profile.py
@@ -172,19 +172,18 @@ class Profile(item.Item):
'xen_paravirt' : self.xen_paravirt
}
- def printable(self):
+ def printable(self,id):
"""
A human readable representaton
"""
- buf = ""
- buf = buf + "profile : %s\n" % self.name
+ buf = "profile %-4s : %s\n" % (id, self.name)
buf = buf + "distro : %s\n" % self.distro
buf = buf + "kickstart : %s\n" % self.kickstart
- buf = buf + "kernel opts : %s" % self.kernel_options
- buf = buf + "xen name : %s" % self.xen_name
- buf = buf + "xen file size : %s" % self.xen_file_size
- buf = buf + "xen ram : %s" % self.xen_ram
- buf = buf + "xen mac : %s" % self.xen_mac
- buf = buf + "xen paravirt : %s" % self.xen_paravirt
+ buf = buf + "kernel options : %s\n" % self.kernel_options
+ buf = buf + "xen name : %s\n" % self.xen_name
+ buf = buf + "xen file size : %s\n" % self.xen_file_size
+ buf = buf + "xen ram : %s\n" % self.xen_ram
+ # buf = buf + "xen mac : %s\n" % self.xen_mac
+ buf = buf + "xen paravirt : %s\n" % self.xen_paravirt
return buf