Skip to content

Commit

Permalink
Revert "fixup! CP-50537: Propagate originator as a http request header"
Browse files Browse the repository at this point in the history
This reverts commit a4648e2.
  • Loading branch information
GabrielBuica committed Oct 28, 2024
1 parent a4648e2 commit bcfb01e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python3/examples/XenAPI/XenAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,18 @@ def with_tracecontext(self):
# pylint: disable=possibly-used-before-assignment
propagators = propagate.get_global_textmap()
propagators.inject(headers, ctx)
self._extra_headers = []

Check warning on line 117 in python3/examples/XenAPI/XenAPI.py

View workflow job for this annotation

GitHub Actions / Python tests (3.11)

[pylint] reported by reviewdog 🐶 C0303: Trailing whitespace (trailing-whitespace) Raw Output: python3/examples/XenAPI/XenAPI.py:117:0: C0303: Trailing whitespace (trailing-whitespace)
for k, v in headers.items():
self.add_extra_header(k, v)
def make_connection(self, host):
self._extra_headers = []
self.with_tracecontext()

originator_k = "ORIGINATOR"
originator_v = os.getenv(originator_k, None)
if originator_v:
self.add_extra_header(originator_k.lower(), originator_v)

Check warning on line 128 in python3/examples/XenAPI/XenAPI.py

View workflow job for this annotation

GitHub Actions / Python tests (3.11)

[pylint] reported by reviewdog 🐶 C0303: Trailing whitespace (trailing-whitespace) Raw Output: python3/examples/XenAPI/XenAPI.py:128:0: C0303: Trailing whitespace (trailing-whitespace)
# compatibility with parent xmlrpclib.Transport HTTP/1.1 support
if self._connection and host == self._connection[0]:
return self._connection[1]
Expand Down

0 comments on commit bcfb01e

Please sign in to comment.