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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py
index 139c94e8..f88291e7 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -41,7 +41,7 @@ class Profiles(collection.Collection):
if not recursive:
for v in self.config.systems():
- if v.profile.lower() == name:
+ if v.profile is not None and v.profile.lower() == name:
raise CX(_("removal would orphan system: %s") % v.name)
obj = self.find(name=name)