Skip to content

Commit fbcc033

Browse files
authored
Merge pull request #5834 from GabrielBuica/private/dbuica/CP-50270
CP-50270: Set the correct parent in `make_connection`
2 parents dcf558f + de34718 commit fbcc033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/examples/python/XenAPI/XenAPI.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,13 @@ def with_tracecontext(self):
123123
for k, v in headers.items():
124124
self.add_extra_header(k, v)
125125
def make_connection(self, host):
126+
self.with_tracecontext()
127+
126128
# compatibility with parent xmlrpclib.Transport HTTP/1.1 support
127129
if self._connection and host == self._connection[0]:
128130
return self._connection[1]
129131

130132
self._connection = host, UDSHTTPConnection(host)
131-
self.with_tracecontext()
132133
return self._connection[1]
133134

134135
def notimplemented(name, *args, **kwargs):

0 commit comments

Comments
 (0)