Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 26, 2023
1 parent adb47d4 commit b954c87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions spinnman/spalloc/spalloc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,14 @@ def get_session_credentials_for_db(self):
config["SPALLOC", "service uri"] = self._service_url
config["SPALLOC", "job uri"] = self._url
cookies, headers = self._session_credentials
for k, v in cookies.items():
config["COOKIE", k] = v
for k, v in headers.items():
config["HEADER", k] = v
if "Authorization" in headers:
# We never write the auth headers themselves; we just extend the
# session
del headers["Authorization"]
for k, v in cookies.items():
config["COOKIE", k] = v
for k, v in headers.items():
config["HEADER", k] = v
return config

@overrides(SpallocJob.get_state)
Expand Down
2 changes: 1 addition & 1 deletion spinnman/spalloc/spalloc_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def where_is_machine(self, x: int, y: int) -> Optional[
raise NotImplementedError()

@abstractmethod
def get_session_credentials_for_db(self) -> Mapping[str, str]:
def get_session_credentials_for_db(self) -> Mapping[Tuple[str, str], str]:
"""
Get the session credentials for the job to be written into a database
Expand Down

0 comments on commit b954c87

Please sign in to comment.