diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-05-13 17:18:16 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-05-13 17:18:16 -0400 |
commit | b7217f4730ed54abaec95855a682c5c9f3b73870 (patch) | |
tree | 6cd4bef7d08af1e117d69aed450b6d38d2a70429 /cobbler/remote.py | |
parent | 0f60b1a19ef32c63c591905b9640ebb60684f442 (diff) | |
download | third_party-cobbler-b7217f4730ed54abaec95855a682c5c9f3b73870.tar.gz third_party-cobbler-b7217f4730ed54abaec95855a682c5c9f3b73870.tar.xz third_party-cobbler-b7217f4730ed54abaec95855a682c5c9f3b73870.zip |
Change the way error checking works around NFS read errors (root squash)
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r-- | cobbler/remote.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py index 8cf9ba3..69754a3 100644 --- a/cobbler/remote.py +++ b/cobbler/remote.py @@ -747,6 +747,16 @@ class CobblerReadWriteXMLRPCInterface(CobblerXMLRPCInterface): return self.object_cache[object_id][0] raise CX(_("No such object for ID: %s") % object_id) + def sync(self,token): + """ + Run sync code, which should complete before XMLRPC timeout. We can't + do reposync this way. Would be nice to send output over AJAX/other + later. + """ + self.log("sync",token=token) + self.check_access(token,"sync") + return self.api.sync() + def new_distro(self,token): """ Creates a new (unconfigured) distro object. It works something like |