Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Remove passwd_file refs
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatoriu committed Feb 24, 2021
1 parent 34fcc94 commit 803ef8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions show_ssh_info/show_ssh_info/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def get(self):
logging.debug('chmod tmp {}'.format(chtmp_output))

# mount whole bucket first
mount_output = subprocess.check_output('s3fs -o passwd_file="/.passwd-s3fs" -o use_cache=/tmp/cache {} {}'.format(bucket,user_workspace), shell=True).decode('utf-8')
mount_output = subprocess.check_output('s3fs -o iam_role=auto -o imdsv1only -o use_cache=/tmp/cache {} {}'.format(bucket,user_workspace), shell=True).decode('utf-8')
message = mount_output
logging.debug('mount log {}'.format(mount_output))

Expand All @@ -252,7 +252,7 @@ def get(self):
message = umount_output
logging.debug('umount output {}'.format(umount_output))

mountdir_output = subprocess.check_output('s3fs -o passwd_file="/.passwd-s3fs" -o use_cache=/tmp/cache {} {}'.format(user_bucket_dir,user_workspace), shell=True).decode('utf-8')
mountdir_output = subprocess.check_output('s3fs -o iam_role=auto -o imdsv1only -o use_cache=/tmp/cache {} {}'.format(user_bucket_dir,user_workspace), shell=True).decode('utf-8')
message = mountdir_output
logging.debug('mountdir output {}'.format(mountdir_output))

Expand Down Expand Up @@ -364,7 +364,7 @@ def get(self):
else:
# mount whole bucket first
mount_output = subprocess.check_output(
's3fs -o passwd_file="/.passwd-s3fs" {} /projects/{}'.format(
's3fs -o iam_role=auto -o imdsv1only {} /projects/{}'.format(
bucket, org),
shell=True).decode('utf-8')
message = mount_output
Expand Down

0 comments on commit 803ef8e

Please sign in to comment.