diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-05-09 12:30:53 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-09 12:30:53 -0400 |
commit | 4494a9f367838913f1898faef81ba27a849008aa (patch) | |
tree | 950b946f154f40a754a62a94a0536e9e5b32922d /cobbler/collection_profiles.py | |
parent | 804a564ac24ff22cd46583fa98d8140a8b10f476 (diff) | |
download | cobbler-4494a9f367838913f1898faef81ba27a849008aa.tar.gz cobbler-4494a9f367838913f1898faef81ba27a849008aa.tar.xz 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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py index 39bff026..837b0e63 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 |