diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-10-08 15:40:01 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-10-08 15:40:01 -0400 |
commit | c329cfdbe77751eafcbff7bea172e3d4da681c81 (patch) | |
tree | f7b4293a4e782f94487766df5b3a83d059ff2ac9 /cobbler/modules/cli_misc.py | |
parent | 6eff595021c2bd7a995680bdfa1f1595d76c338f (diff) | |
download | cobbler-c329cfdbe77751eafcbff7bea172e3d4da681c81.tar.gz cobbler-c329cfdbe77751eafcbff7bea172e3d4da681c81.tar.xz cobbler-c329cfdbe77751eafcbff7bea172e3d4da681c81.zip |
Work on the new options to cobbler reposync (--tries=N and --no-fail)
Diffstat (limited to 'cobbler/modules/cli_misc.py')
-rw-r--r-- | cobbler/modules/cli_misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py index 2c4e4b06..a293474c 100644 --- a/cobbler/modules/cli_misc.py +++ b/cobbler/modules/cli_misc.py @@ -184,11 +184,11 @@ class RepoSyncFunction(commands.CobblerFunction): def add_options(self, p, args): p.add_option("--only", dest="only", help="update only this repository name") - p.add_option("--retries", dest="retries", help="retry each repo this many times", default=1) + p.add_option("--tries", dest="tries", help="try each repo this many times", default=1) p.add_option("--no-fail", dest="nofail", help="don't stop reposyncing if a failure occurs", action="store_true") def run(self): - return self.api.reposync(self.options.only, retries=self.options.retries, nofail=self.options.nofail) + return self.api.reposync(self.options.only, tries=self.options.tries, nofail=self.options.nofail) ######################################################## |