summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_profiles.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/collection_profiles.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/collection_profiles.py')
-rw-r--r--cobbler/collection_profiles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py
index 39bff02..837b0e6 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -26,9 +26,9 @@ class Profiles(collection.Collection):
"""
Remove element named 'name' from the collection
"""
- for k,v in self.config.systems().listing.items():
+ for v in self.config.systems():
if v.profile == name:
- raise cexceptions.CobblerException("orphan_system")
+ raise cexceptions.CobblerException("orphan_system",v.name)
if self.find(name):
del self.listing[name]
return True