summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_profiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/collection_profiles.py')
-rw-r--r--cobbler/collection_profiles.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py
index a5b1996..b1c92dd 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -10,6 +10,7 @@ Michael DeHaan <mdehaan@redhat.com>
import item_profile as profile
import utils
import collection
+from cobbler_exception import CobblerException
#--------------------------------------------
@@ -27,11 +28,9 @@ class Profiles(collection.Collection):
"""
for k,v in self.config.systems().listing.items():
if v.profile == name:
- utils.set_error("orphan_system")
- return False
+ raise CobblerException("orphan_system")
if self.find(name):
del self.listing[name]
return True
- utils.set_error("delete_nothing")
- return False
+ raise CobblerException("delete_nothing")