mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user