Skip to content

Commit

Permalink
Allow multipel hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Feb 6, 2024
1 parent 9008ec9 commit 767ad87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hera_librarian/transfers/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@


class LocalTransferManager(CoreTransferManager):
hostname: str
"The hostname of the machine being transferred to."
hostnames: list[str]
"The hostname(s) of the machine being transferred to."

def transfer(self, local_path: Path, remote_path: Path):
# TODO: Verify that the location we are trying to copy to exists.
Expand All @@ -23,4 +23,4 @@ def transfer(self, local_path: Path, remote_path: Path):

@property
def valid(self) -> bool:
return gethostname() == self.hostname
return gethostname() in self.hostnames

0 comments on commit 767ad87

Please sign in to comment.