1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

get rid of newline chars when reading password file

This commit is contained in:
Francesc Esplugas 2014-03-02 12:41:07 +01:00 committed by James Cammarata
parent fbf500ba1f
commit 14b4cb60d6

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