mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
get rid of newline chars when reading password file
This commit is contained in:
parent
6690c23439
commit
0fd5829f10
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ def _read_password(filename):
|
||||||
f = open(filename, "rb")
|
f = open(filename, "rb")
|
||||||
data = f.read()
|
data = f.read()
|
||||||
f.close
|
f.close
|
||||||
|
# get rid of newline chars
|
||||||
|
data = data.strip()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def execute_create(args, options, parser):
|
def execute_create(args, options, parser):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue