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

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