From 4ce23db0492822de6ba8e8c445e202b72d805028 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 1 Feb 2007 17:40:04 -0500 Subject: Work towards implementation of optional integrated "light" sync support, which is enabled by default in /var/lib/cobbler/settings. Users of the API will need to use the with_copy=True and with_delete=True parameters to initiate this behavior. As mentioned in the previous commit, sync() still needs to be run at least once prior to any add commands using this feature. --- cobbler/action_reposync.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cobbler/action_reposync.py') diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py index 276dd71..29bbfe2 100644 --- a/cobbler/action_reposync.py +++ b/cobbler/action_reposync.py @@ -44,13 +44,12 @@ class RepoSync: self.settings = config.settings() self.repos = config.repos() - def run(self,dryrun=False,verbose=True): + def run(self,verbose=True): """ Syncs the current repo configuration file with the filesystem. """ self.verbose = verbose - self.dryrun = dryrun for repo in self.repos: print "considering: %s" % repo repo_path = os.path.join(self.settings.webdir, "repo_mirror", repo.name) -- cgit