diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-17 18:26:53 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-17 18:26:53 -0400 |
commit | 9f4ea453b260f0582fb04e6c1d20cf92daa497b7 (patch) | |
tree | 61a911294a60299cf60f00ba28a96da436f38b06 /cobbler/collection_profiles.py | |
parent | 4a7d0c46c7dd4ab46a4850bd462729d1ea6be497 (diff) | |
download | cobbler-9f4ea453b260f0582fb04e6c1d20cf92daa497b7.tar.gz cobbler-9f4ea453b260f0582fb04e6c1d20cf92daa497b7.tar.xz 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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py index 7e71ec17..b878ff98 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")) |