diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-02-01 14:50:35 -0500 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-02-01 14:50:35 -0500 |
commit | 7d280f93f627834c4361c8d3958edaed3d589e25 (patch) | |
tree | 7d1c0353192a3c69d515e2c8c919353c3d67f501 /cobbler/collection_systems.py | |
parent | 3427118b89ca156fc5042a7acea5a773d3e7519a (diff) | |
download | third_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_systems.py')
-rw-r--r-- | cobbler/collection_systems.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cobbler/collection_systems.py b/cobbler/collection_systems.py index 2364077..013ada1 100644 --- a/cobbler/collection_systems.py +++ b/cobbler/collection_systems.py @@ -17,6 +17,7 @@ import item_system as system import utils import collection import cexceptions +import action_litesync TESTMODE = False @@ -48,6 +49,8 @@ class Systems(collection.Collection): """ if self.find(name): del self.listing[name] + lite_sync = action_litesync.BootLiteSync(self.config) + lite_sync.remove_single_system(name) return True raise cexceptions.CobblerException("delete_nothing") - + |