summaryrefslogtreecommitdiffstats
path: root/cobbler/collection.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-15 11:01:19 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-15 11:01:19 -0400
commit096b9e109e2f8a954af25b8f5241d5f7fd089755 (patch)
tree57b70179eed0b5b3b65a8f78d3fb5ad8093496d5 /cobbler/collection.py
parent2fd4775c68160a8617fff5f7015542bf8c1501e5 (diff)
downloadcobbler-096b9e109e2f8a954af25b8f5241d5f7fd089755.tar.gz
cobbler-096b9e109e2f8a954af25b8f5241d5f7fd089755.tar.xz
cobbler-096b9e109e2f8a954af25b8f5241d5f7fd089755.zip
Work on an shelve-based external storage, for performance testing. Sqlite
is just as likely at this point.
Diffstat (limited to 'cobbler/collection.py')
-rw-r--r--cobbler/collection.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/collection.py b/cobbler/collection.py
index 59eebe86..de7ae72b 100644
--- a/cobbler/collection.py
+++ b/cobbler/collection.py
@@ -135,7 +135,9 @@ class Collection(serializable.Serializable):
self._run_triggers(ref,"/var/lib/cobbler/triggers/add/%s/pre/*" % self.collection_type())
self.listing[ref.name.lower()] = ref
- self.config.api.serialize()
+ # save just this item if possible, if not, save
+ # the whole collection
+ self.config.serialize_item(self, ref)
lite_sync = action_litesync.BootLiteSync(self.config)
if isinstance(ref, item_system.System):