|
|
|
@ -106,8 +106,7 @@ class JSONRPCDaemon(object):
|
|
|
|
|
protocol=protocol, host=host, port=port
|
|
|
|
|
)
|
|
|
|
|
_log.debug("JSONRPC daemon backend URL: {url}".format(url=self.url))
|
|
|
|
|
self.user = user
|
|
|
|
|
self.password = password
|
|
|
|
|
self.auth = requests.auth.HTTPDigestAuth(user, password)
|
|
|
|
|
self.timeout = timeout
|
|
|
|
|
self.verify_ssl_certs = verify_ssl_certs
|
|
|
|
|
self.proxies = {protocol: proxy_url}
|
|
|
|
@ -222,12 +221,11 @@ class JSONRPCDaemon(object):
|
|
|
|
|
path=path, data=json.dumps(data, indent=2, sort_keys=True)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
auth = requests.auth.HTTPDigestAuth(self.user, self.password)
|
|
|
|
|
rsp = requests.post(
|
|
|
|
|
self.url + path,
|
|
|
|
|
headers=hdr,
|
|
|
|
|
data=json.dumps(data) if data else None,
|
|
|
|
|
auth=auth,
|
|
|
|
|
auth=self.auth,
|
|
|
|
|
timeout=self.timeout,
|
|
|
|
|
verify=self.verify_ssl_certs,
|
|
|
|
|
proxies=self.proxies,
|
|
|
|
@ -251,12 +249,11 @@ class JSONRPCDaemon(object):
|
|
|
|
|
method=method, params=json.dumps(params, indent=2, sort_keys=True)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
auth = requests.auth.HTTPDigestAuth(self.user, self.password)
|
|
|
|
|
rsp = requests.post(
|
|
|
|
|
self.url + "/json_rpc",
|
|
|
|
|
headers=hdr,
|
|
|
|
|
data=json.dumps(data),
|
|
|
|
|
auth=auth,
|
|
|
|
|
auth=self.auth,
|
|
|
|
|
timeout=self.timeout,
|
|
|
|
|
verify=self.verify_ssl_certs,
|
|
|
|
|
proxies=self.proxies,
|
|
|
|
|