diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-01-31 13:20:37 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-01-31 13:20:37 -0500 |
commit | 424f947cf7622dd8aa987917f83170dc5bfbcd9f (patch) | |
tree | 34397da01e1c990f5863536e4e9e389372095d1f /cobbler/action_litesync.py | |
parent | 2f9fd2c61a18661adb007d46f1f83ac12154f406 (diff) | |
download | third_party-cobbler-424f947cf7622dd8aa987917f83170dc5bfbcd9f.tar.gz third_party-cobbler-424f947cf7622dd8aa987917f83170dc5bfbcd9f.tar.xz third_party-cobbler-424f947cf7622dd8aa987917f83170dc5bfbcd9f.zip |
Recursive deletes are now possible with --recursive. Web UI still needs to take advantage of this.
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r-- | cobbler/action_litesync.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index 37d5bd5..457f3af 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -60,6 +60,10 @@ class BootLiteSync: self.sync.write_distro_file(distro) # copy image files to images/$name in webdir & tftpboot: self.sync.copy_single_distro_files(distro) + # cascade sync + kids = distro.get_children() + for k in kids: + self.add_single_profile(k.name) def remove_single_distro(self, name): # delete distro YAML file in distros/$name in webdir @@ -84,6 +88,13 @@ class BootLiteSync: self.sync.validate_kickstart_for_specific_profile(profile) # rebuild the yum configuration files for any attached repos self.sync.retemplate_yum_repos(profile,True) + # cascade sync + kids = profile.get_children() + for k in kids: + if k.COLLECTION_TYPE == "profile": + self.add_single_profile(k.name) + else: + self.add_single_system(k.name) def remove_single_profile(self, name): # rebuild profile_list YAML file in webdir |