Skip to content

Commit

Permalink
stripping password
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Nov 19, 2020
1 parent f99cfc3 commit 5629b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ena_upload/ena_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ def main ():
if args.password:
password = args.password
else:
secret_file = open(args.secret, "r")
password = secret_file.readline()
secret_file = open(".secret", "r")
password = secret_file.readline().strip()
if not password:
print( "Oops, file {} does not contain a password on the first line.".format(args.secret))
secret_file.close()
Expand Down

0 comments on commit 5629b7c

Please sign in to comment.