Skip to content

Commit b876050

Browse files
committed
Remedy outstanding issues
1 parent 4eefd9b commit b876050

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

hera_librarian/async_transfers/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from pydantic import BaseModel
99

10+
from hera_librarian.models.transfer import CompletedTransferCore
1011
from hera_librarian.transfer import TransferStatus
1112

1213

hera_librarian/async_transfers/globus.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,17 +408,17 @@ def gather_transfer_details(
408408
returns them in a Pydantic object.
409409
"""
410410

411-
if self.authorizer is None:
411+
authorizer = self.authorize(settings=settings)
412+
if authorizer is None:
412413
logger.debug("Authorizer not provided, attempting internal authorization")
413-
self.authorizer = self.authorize(settings=settings)
414414

415-
if not self.authorizer:
415+
if not authorizer:
416416
logger.error("Authorization failed")
417417
return None
418418

419419
logger.debug("Authorization successful")
420420

421-
transfer_client = globus_sdk.TransferClient(authorizer=self.authorizer)
421+
transfer_client = globus_sdk.TransferClient(authorizer=authorizer)
422422

423423
try:
424424
logger.debug(f"Fetching task details for ID: {self.task_id}")

hera_librarian/async_transfers/rsync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import sysrsync
99

10+
from hera_librarian.models.transfer import CompletedTransferCore
1011
from hera_librarian.transfer import TransferStatus
1112

1213
from .core import CoreAsyncTransferManager

0 commit comments

Comments
 (0)