Skip to content

Commit

Permalink
merged in master
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jun 20, 2024
2 parents 13911c2 + ab9fcdf commit c1ea662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinnman/spalloc/spalloc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ def __init__(
if username is None and password is None:
service_url, username, password = parse_service_url(service_url)
if username is None:
username = os.environ["SPALLOC_USER"]
username = os.getenv("SPALLOC_USER", None)
if password is None:
password = os.environ["SPALLOC_PASSWORD"]
password = os.getenv("SPALLOC_PASSWORD", None)

self.__session: Optional[Session] = Session(
service_url, username, password, bearer_token)
Expand Down

0 comments on commit c1ea662

Please sign in to comment.