get rid of newline chars when reading password file
This commit is contained in:
parent
fbf500ba1f
commit
14b4cb60d6
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ def _read_password(filename):
|
|||
f = open(filename, "rb")
|
||||
data = f.read()
|
||||
f.close
|
||||
# get rid of newline chars
|
||||
data = data.strip()
|
||||
return data
|
||||
|
||||
def execute_create(args, options, parser):
|
||||
|
|
Loading…
Reference in a new issue