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:
mj84 2019-07-01 13:22:40 +02:00 committed by ansibot
parent 045caaa400
commit d2ccf90610
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- rabbitmq_binding - added missing SSL options for HTTP GET and DELETE requests

View file

@ -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):
"""