From 4a23134e1e5d70a9c8c5857790dbf27585ca3b1f Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Fri, 29 Aug 2025 14:05:20 +0200 Subject: Discovery: Add cache argument and embed unmarshal on startup --- wrappers/python/eduvpn_common/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wrappers/python/eduvpn_common/main.py') diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py index 613dce2..334c8b8 100644 --- a/wrappers/python/eduvpn_common/main.py +++ b/wrappers/python/eduvpn_common/main.py @@ -194,14 +194,14 @@ class EduVPN(object): forwardError(server_err) return server - def get_disco_organizations(self, search="") -> str: - orgs, _ = self.go_cookie_function(self.lib.DiscoOrganizations, search) + def get_disco_organizations(self, cache: bool = False, search="") -> str: + orgs, _ = self.go_cookie_function(self.lib.DiscoOrganizations, cache, search) # We don't log anything here as we want to return a result and we don't want to throw here # we already log for errors in common return orgs - def get_disco_servers(self, search="") -> str: - servers, _ = self.go_cookie_function(self.lib.DiscoServers, search) + def get_disco_servers(self, cache: bool = False, search="") -> str: + servers, _ = self.go_cookie_function(self.lib.DiscoServers, cache, search) # We don't log anything here as we want to return a result and we don't want to throw here # we already log for errors in common return servers -- cgit v1.2.3