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

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