Skip to content

Commit

Permalink
Remove constant LocalChannel.hostname attribute
Browse files Browse the repository at this point in the history
This is part of moving LocalChannel to have no state, part of #3515

This hostname and exception will be removed when more #3515 work makes
channel push/pull of files go away.
  • Loading branch information
benclifford committed Nov 7, 2024
1 parent b092195 commit 610dad9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parsl/channels/local/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def __init__(self):
KwArgs:
- script_dir (string): Directory to place scripts
'''
self.hostname = "localhost"
self.script_dir = None

def execute_wait(self, cmd, walltime=None):
Expand Down Expand Up @@ -82,7 +81,7 @@ def push_file(self, source, dest_dir):
os.chmod(local_dest, 0o700)

except OSError as e:
raise FileCopyException(e, self.hostname)
raise FileCopyException(e, "localhost")

else:
os.chmod(local_dest, 0o700)
Expand Down

0 comments on commit 610dad9

Please sign in to comment.