summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_profiles.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-17 18:26:53 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-17 18:26:53 -0400
commit9f4ea453b260f0582fb04e6c1d20cf92daa497b7 (patch)
tree61a911294a60299cf60f00ba28a96da436f38b06 /cobbler/collection_profiles.py
parent4a7d0c46c7dd4ab46a4850bd462729d1ea6be497 (diff)
downloadthird_party-cobbler-9f4ea453b260f0582fb04e6c1d20cf92daa497b7.tar.gz
third_party-cobbler-9f4ea453b260f0582fb04e6c1d20cf92daa497b7.tar.xz
third_party-cobbler-9f4ea453b260f0582fb04e6c1d20cf92daa497b7.zip
Some fixes to non-db backed serialization. Repos still need some work.
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 7e71ec1..b878ff9 100644
--- a/cobbler/collection_profiles.py
+++ b/cobbler/collection_profiles.py
@@ -46,10 +46,10 @@ class Profiles(collection.Collection):
self._run_triggers(obj, "/var/lib/cobbler/triggers/delete/profile/pre/*")
lite_sync = action_litesync.BootLiteSync(self.config)
lite_sync.remove_single_profile(name)
+ del self.listing[name]
self.config.serialize_delete(self, obj)
if with_delete:
self._run_triggers(obj, "/var/lib/cobbler/triggers/delete/profile/post/*")
- del self.listing[name]
return True
raise CX(_("cannot delete an object that does not exist"))