summaryrefslogtreecommitdiffstats
path: root/cobbler/collection_distros.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-02-01 14:50:35 -0500
committerJim Meyering <jim@meyering.net>2007-02-01 14:50:35 -0500
commit7d280f93f627834c4361c8d3958edaed3d589e25 (patch)
tree7d1c0353192a3c69d515e2c8c919353c3d67f501 /cobbler/collection_distros.py
parent3427118b89ca156fc5042a7acea5a773d3e7519a (diff)
downloadthird_party-cobbler-7d280f93f627834c4361c8d3958edaed3d589e25.tar.gz
third_party-cobbler-7d280f93f627834c4361c8d3958edaed3d589e25.tar.xz
third_party-cobbler-7d280f93f627834c4361c8d3958edaed3d589e25.zip
Skeleton code (currently does exactly what it used to do) for cobbler add/remove commands that do not require running "sync". Sync will only be required when the kickstart files behind systems change, or when YAML is hand edited. This should vastly improve cobbler for use in larger systems, especially when used as a library when all control paths are known.
Sync will still be required once for an initial install (just once), or whenever kickstart or YAML files are edited. It can also be run again at any time for a sanity check -- sync isn't going away.
Diffstat (limited to 'cobbler/collection_distros.py')
-rw-r--r--cobbler/collection_distros.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py
index faffa3a..cb21a5f 100644
--- a/cobbler/collection_distros.py
+++ b/cobbler/collection_distros.py
@@ -17,6 +17,7 @@ import utils
import collection
import item_distro as distro
import cexceptions
+import action_litesync
TESTMODE = False
@@ -50,6 +51,8 @@ class Distros(collection.Collection):
raise cexceptions.CobblerException("orphan_profile",v.name)
if self.find(name):
del self.listing[name]
+ lite_sync = action_litesync.BootLiteSync(self.config)
+ lite_sync.remove_single_profile(name)
return True
raise cexceptions.CobblerException("delete_nothing")