From 47ce9381218c695cbc80e502f1d805cc2f30aa4e Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Wed, 4 Sep 2019 02:54:10 +0100 Subject: [PATCH] Read update file as utf-8 (#55253) --- lib/ansible/modules/web_infrastructure/jenkins_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/jenkins_plugin.py b/lib/ansible/modules/web_infrastructure/jenkins_plugin.py index 9430b7ab6ef..7aa553d7a11 100644 --- a/lib/ansible/modules/web_infrastructure/jenkins_plugin.py +++ b/lib/ansible/modules/web_infrastructure/jenkins_plugin.py @@ -561,7 +561,7 @@ class JenkinsPlugin(object): # Open the updates file try: - f = open(updates_file) + f = open(updates_file, encoding='utf-8') except IOError as e: self.module.fail_json( msg="Cannot open temporal updates file.",