get rid of newline chars when reading password file

This commit is contained in:
Francesc Esplugas
2014-03-02 12:41:07 +01:00
parent 6690c23439
commit 0fd5829f10

View File

@@ -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):