Added missing SSL parameters to rabbitmq_binding (#58064)
In rabbitmq_binding.py the SSL parameters ca_cert, client_cert, client_key were only passed to requests for post requests. This change updates the DELETE and GET requests to include these parameters as well.
This commit is contained in:
parent
045caaa400
commit
d2ccf90610
2 changed files with 4 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- rabbitmq_binding - added missing SSL options for HTTP GET and DELETE requests
|
|
@ -137,7 +137,7 @@ class RabbitMqBinding(object):
|
||||||
201: True,
|
201: True,
|
||||||
204: True,
|
204: True,
|
||||||
}
|
}
|
||||||
self.api_result = self.request.get(self.url, auth=self.authentication)
|
self.api_result = self.request.get(self.url, auth=self.authentication, verify=self.verify, cert=(self.cert, self.key))
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
|
@ -258,7 +258,7 @@ class RabbitMqBinding(object):
|
||||||
"""
|
"""
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
self.api_result = self.request.delete(self.url, auth=self.authentication)
|
self.api_result = self.request.delete(self.url, auth=self.authentication, verify=self.verify, cert=(self.cert, self.key))
|
||||||
|
|
||||||
def fail(self):
|
def fail(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue