[ARVADOS] created: a15fc58f280171660afd2b9f1938f0a6bc5ede4a
Git user
git at public.curoverse.com
Thu Mar 9 14:40:29 EST 2017
at a15fc58f280171660afd2b9f1938f0a6bc5ede4a (commit)
commit a15fc58f280171660afd2b9f1938f0a6bc5ede4a
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Mar 9 13:49:15 2017 -0500
11226: Disable google api client discovery doc caching, use only httplib2 caching.
Google API client has its own caching mechanism. The problem is, by default
this goes to /tmp/google-api-python-client-discovery-doc.cache This is a
problem on a multi-user system. Arvados already provides for discovery doc
caching via httplib2.
diff --git a/sdk/python/arvados/api.py b/sdk/python/arvados/api.py
index f24b1ed..ccf16a5 100644
--- a/sdk/python/arvados/api.py
+++ b/sdk/python/arvados/api.py
@@ -205,7 +205,7 @@ def api(version=None, cache=True, host=None, token=None, insecure=False, **kwarg
kwargs['http'] = _patch_http_request(kwargs['http'], token)
- svc = apiclient_discovery.build('arvados', version, **kwargs)
+ svc = apiclient_discovery.build('arvados', version, cache_discovery=False, **kwargs)
svc.api_token = token
svc.insecure = insecure
kwargs['http'].max_request_size = svc._rootDesc.get('maxRequestSize', 0)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list