From 3739ae458fbfe5698307c46524041e6114ad28c5 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 19 Nov 2007 18:00:47 -0500 Subject: Misc fixes during CLI testing. Not done yet. --- cobbler/modules/cli_misc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py index eb66fb0..b71a84c 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) -- cgit