Skip to content

Commit

Permalink
Merge pull request #5834 from GabrielBuica/private/dbuica/CP-50270
Browse files Browse the repository at this point in the history
CP-50270: Set the correct parent in `make_connection`
  • Loading branch information
edwintorok authored Jul 15, 2024
2 parents dcf558f + de34718 commit fbcc033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/examples/python/XenAPI/XenAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ def with_tracecontext(self):
for k, v in headers.items():
self.add_extra_header(k, v)
def make_connection(self, host):
self.with_tracecontext()

# compatibility with parent xmlrpclib.Transport HTTP/1.1 support
if self._connection and host == self._connection[0]:
return self._connection[1]

self._connection = host, UDSHTTPConnection(host)
self.with_tracecontext()
return self._connection[1]

def notimplemented(name, *args, **kwargs):
Expand Down

0 comments on commit fbcc033

Please sign in to comment.