diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-11-19 18:00:47 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-11-19 18:00:47 -0500 |
commit | 3739ae458fbfe5698307c46524041e6114ad28c5 (patch) | |
tree | 0e2cea265e1d3ba01be967e5e367404aed783f5f /cobbler | |
parent | 995bf878e03aabd8036498b641253a2c419e3c01 (diff) | |
download | cobbler-3739ae458fbfe5698307c46524041e6114ad28c5.tar.gz cobbler-3739ae458fbfe5698307c46524041e6114ad28c5.tar.xz cobbler-3739ae458fbfe5698307c46524041e6114ad28c5.zip |
Misc fixes during CLI testing. Not done yet.
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/modules/cli_misc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py index eb66fb08..b71a84ca 100644 --- a/cobbler/modules/cli_misc.py +++ b/cobbler/modules/cli_misc.py @@ -242,6 +242,9 @@ class SyncFunction(commands.CobblerFunction): def command_name(self): return "sync" + def run(self): + return self.api.sync() + ######################################################## class RepoSyncFunction(commands.CobblerFunction): @@ -253,7 +256,7 @@ class RepoSyncFunction(commands.CobblerFunction): return "reposync" def add_options(self, p, args): - p.add_options("--only", dest="only", help="update only this repository name") + p.add_option("--only", dest="only", help="update only this repository name") def run(self): return self.api.reposync(self.options.only) |