diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-02-01 17:40:04 -0500 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-02-01 17:40:04 -0500 |
commit | 4ce23db0492822de6ba8e8c445e202b72d805028 (patch) | |
tree | c45ab9340ffab259fb9a5b7a2893a1ce242a33e2 /cobbler/action_reposync.py | |
parent | 7d280f93f627834c4361c8d3958edaed3d589e25 (diff) | |
download | third_party-cobbler-4ce23db0492822de6ba8e8c445e202b72d805028.tar.gz third_party-cobbler-4ce23db0492822de6ba8e8c445e202b72d805028.tar.xz third_party-cobbler-4ce23db0492822de6ba8e8c445e202b72d805028.zip |
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.
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r-- | cobbler/action_reposync.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |