ipaclient_get_otp: Fix password encoding

Deploying a client with one-time password use was failing in latest tests
using ansible 2.7 and FreeIPA 4.7 because of an encoding problem.
This commit is contained in:
Thomas Woerner
2019-03-25 19:52:40 +01:00
parent a6ee0d0756
commit fdb44fc2c4

View File

@@ -62,7 +62,7 @@ def kinit_password(principal, password, ccache_name, config):
os.environ['KRB5_CONFIG'] = config
try:
result = run_cmd(args, stdin=password)
result = run_cmd(args, stdin=password.encode())
return result
finally:
if old_config is not None: