summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-06 12:45:27 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-06 12:45:27 -0400
commita72c34cae409841956d97b22e9102f723cb66d8e (patch)
treebd171967fec8e2b0a2b4174c60f03dd918da4838 /cobbler/api.py
parent36c7abaa74b11786cd5f3184c17938b516baf890 (diff)
downloadthird_party-cobbler-a72c34cae409841956d97b22e9102f723cb66d8e.tar.gz
third_party-cobbler-a72c34cae409841956d97b22e9102f723cb66d8e.tar.xz
third_party-cobbler-a72c34cae409841956d97b22e9102f723cb66d8e.zip
Ben Riggs patch to allow for reposyncs of explicit repos + tweak
to repo object to ensure items get serialized as booleans.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index 1c9a445..c1063b5 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -189,13 +189,13 @@ class BootAPI:
sync = action_sync.BootSync(self._config)
return sync.run()
- def reposync(self):
+ def reposync(self, args=[]):
"""
Take the contents of /var/lib/cobbler/repos and update them --
or create the initial copy if no contents exist yet.
"""
reposync = action_reposync.RepoSync(self._config)
- return reposync.run()
+ return reposync.run(args)
def status(self,mode):
statusifier = action_status.BootStatusReport(self._config, mode)