Skip to content

Commit

Permalink
refactor: Changes in method initialization of variables (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
yozachar authored Apr 21, 2020
1 parent f8d9856 commit 5d762a4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
import boto3
import sys

KEY = sys.argv[1]
SECRET = sys.argv[2]
ENDPOINT = sys.argv[3]
BUCKET = sys.argv[4]
FILEPATH = sys.argv[5]
FILENAME = sys.argv[6]

KEY, SECRET, ENDPOINT, BUCKET, FILEPATH, FILENAME = [sys.argv[i+1] for i in range(6)]

session = boto3.session.Session()
client = session.client('s3',
Expand All @@ -22,4 +16,3 @@
BUCKET, # Name of Space
FILENAME, # Name for remote file
ExtraArgs={'ACL':'public-read'})

0 comments on commit 5d762a4

Please sign in to comment.