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

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