summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/modules/cli_misc.py')
-rw-r--r--cobbler/modules/cli_misc.py5
1 files changed, 4 insertions, 1 deletions
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)