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.
pull/58523/head
mj84 5 years ago committed by ansibot
parent 045caaa400
commit d2ccf90610

@ -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,
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):
"""
@ -258,7 +258,7 @@ class RabbitMqBinding(object):
"""
: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):
"""

Loading…
Cancel
Save