Blame SOURCES/bz1793739-fence_vmware_rest-1-fix-encoding.patch

bf99d3
From 06cba4aa30322f410b0b2fec5785be39d0953433 Mon Sep 17 00:00:00 2001
bf99d3
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
bf99d3
Date: Wed, 12 Feb 2020 14:21:54 +0100
bf99d3
Subject: [PATCH] fence_vmware_rest: fix encoding to avoid issues with UTF-8
bf99d3
 encoded comments
bf99d3
bf99d3
---
bf99d3
 agents/vmware_rest/fence_vmware_rest.py | 2 +-
bf99d3
 1 file changed, 1 insertion(+), 1 deletion(-)
bf99d3
bf99d3
diff --git a/agents/vmware_rest/fence_vmware_rest.py b/agents/vmware_rest/fence_vmware_rest.py
bf99d3
index cd99b4ac..d07bc10d 100644
bf99d3
--- a/agents/vmware_rest/fence_vmware_rest.py
bf99d3
+++ b/agents/vmware_rest/fence_vmware_rest.py
bf99d3
@@ -127,7 +127,7 @@ def send_command(conn, command, method="GET"):
bf99d3
 		raise Exception(e[1])
bf99d3
 
bf99d3
 	rc = conn.getinfo(pycurl.HTTP_CODE)
bf99d3
-	result = web_buffer.getvalue().decode()
bf99d3
+	result = web_buffer.getvalue().decode("UTF-8")
bf99d3
 
bf99d3
 	web_buffer.close()
bf99d3