Blame SOURCES/bz1712263-fence_rhevm-2-fix-debug-encoding-issues.patch

674a4f
From 965924fe8bf7dcd0bc15fb0e9265ab49bb8a5dd8 Mon Sep 17 00:00:00 2001
674a4f
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
674a4f
Date: Mon, 20 May 2019 15:49:39 +0200
674a4f
Subject: [PATCH] fence_rhevm: fix debug encoding issues
674a4f
674a4f
Tested with UTF-8 encoded comment in result, which caused this issue,
674a4f
and added to command and url in case they are in UTF-8 decoded state.
674a4f
---
674a4f
 agents/rhevm/fence_rhevm.py | 6 +++---
674a4f
 1 file changed, 3 insertions(+), 3 deletions(-)
674a4f
674a4f
diff --git a/agents/rhevm/fence_rhevm.py b/agents/rhevm/fence_rhevm.py
674a4f
index 6012c423..9e4650cd 100644
674a4f
--- a/agents/rhevm/fence_rhevm.py
674a4f
+++ b/agents/rhevm/fence_rhevm.py
674a4f
@@ -144,9 +144,9 @@ def send_command(opt, command, method="GET"):
674a4f
 
674a4f
 	result = web_buffer.getvalue().decode("UTF-8")
674a4f
 
674a4f
-	logging.debug("url: %s\n", url)
674a4f
-	logging.debug("command: %s\n", command)
674a4f
-	logging.debug("result: %s\n", result)
674a4f
+	logging.debug("url: %s\n", url.encode("UTF-8"))
674a4f
+	logging.debug("command: %s\n", command.encode("UTF-8"))
674a4f
+	logging.debug("result: %s\n", result.encode("UTF-8"))
674a4f
 
674a4f
 	return result
674a4f
 
674a4f
-- 
674a4f
2.21.0
674a4f