From a5cd619ea61e3336d4c7e8f3e857f6b2560c022c Mon Sep 17 00:00:00 2001 From: Teodor Kostov Date: Tue, 19 Feb 2019 17:47:02 +0100 Subject: [PATCH] Removed byte flag when opening the new JKS file. (#51951) --- lib/ansible/modules/system/java_keystore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/java_keystore.py b/lib/ansible/modules/system/java_keystore.py index a8b90ba5bda..abd15ec00b3 100644 --- a/lib/ansible/modules/system/java_keystore.py +++ b/lib/ansible/modules/system/java_keystore.py @@ -163,7 +163,7 @@ def run_commands(module, cmd, check_rc=True): def create_file(path, content): - with open(path, 'wb') as f: + with open(path, 'w') as f: f.write(content) return path