summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-11-19 18:00:47 -0500
committerMichael DeHaan <mdehaan@redhat.com>2007-11-19 18:00:47 -0500
commit3739ae458fbfe5698307c46524041e6114ad28c5 (patch)
tree0e2cea265e1d3ba01be967e5e367404aed783f5f /cobbler
parent995bf878e03aabd8036498b641253a2c419e3c01 (diff)
downloadthird_party-cobbler-3739ae458fbfe5698307c46524041e6114ad28c5.tar.gz
third_party-cobbler-3739ae458fbfe5698307c46524041e6114ad28c5.tar.xz
third_party-cobbler-3739ae458fbfe5698307c46524041e6114ad28c5.zip
Misc fixes during CLI testing. Not done yet.
Diffstat (limited to 'cobbler')
-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)