File tree 1 file changed +6
-7
lines changed
src/databricks/sql/cloudfetch
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,19 @@ def run(self):
40
40
41
41
if (
42
42
# DownloadableExecutionContext > HiveExecutionContext > HiveJDBCSettings > ProxySettings > boolean
43
- self .settings .proxy_settings . use_proxy
43
+ self .settings .use_proxy
44
44
# DownloadableExecutionContext > HiveExecutionContext > HiveJDBCSettings > ProxySettings > boolean
45
- and not self .settings .proxy_settings . disable_proxy_for_cloud_fetch
45
+ and not self .settings .disable_proxy_for_cloud_fetch
46
46
):
47
- proxy_settings = self .settings .proxy_settings
48
47
proxy = {
49
- "http" : f"http://{ proxy_settings . proxy_host } :{ proxy_settings .proxy_port } " ,
50
- "https" : f"http://{ proxy_settings . proxy_host } :{ proxy_settings .proxy_port } " ,
48
+ "http" : f"http://{ self . settings . proxy_host } :{ self . settings .proxy_port } " ,
49
+ "https" : f"http://{ self . settings . proxy_host } :{ self . settings .proxy_port } " ,
51
50
}
52
51
session .proxies .update (proxy )
53
52
54
53
# ProxyAuthentication -> static enum BASIC and NONE
55
- if proxy_settings .proxy_auth == "BASIC" :
56
- session .auth = requests .auth .HTTPBasicAuth (proxy_settings . proxy_uid , proxy_settings .proxy_pwd )
54
+ if self . settings .proxy_auth == "BASIC" :
55
+ session .auth = requests .auth .HTTPBasicAuth (self . settings . proxy_uid , self . settings .proxy_pwd )
57
56
58
57
try :
59
58
response = session .get (self .result_link .file_link )
You can’t perform that action at this time.
0 commit comments