Skip to content

Commit

Permalink
feat: minor updates following Tashrif's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kcho committed Oct 18, 2021
1 parent 019e686 commit ed0d1b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lochness/transfer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ def lochness_to_lochness_transfer_s3_protected(Lochness):
{source_directory}/ \
s3://{s3_bucket_name}/{s3_phoenix_root_dtype}'

print(f'Executing aws s3 sync function for {source_directory}')
print(re.sub(r'\s+', r' ', command))
print(os.popen(command).read())

print('aws rsync completed')
logger.debug('Executing aws s3 sync function for '
f'{source_directory}')
logger.debug(re.sub(r'\s+', r' ', command))
logger.debug(os.popen(command).read())
logger.debug('aws rsync completed')


def lochness_to_lochness_transfer_receive_sftp(Lochness):
Expand Down
2 changes: 1 addition & 1 deletion scripts/lochness_create_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def get_arguments():
default=False,
nargs='+',
help='List of dtypes from protected root to transfer '
'using s3')
'using s3 rsync')
parser.add_argument('-lsr', '--lochness_sync_receive',
default=False,
action='store_true',
Expand Down

0 comments on commit ed0d1b9

Please sign in to comment.