Blame SOURCES/bz1793739-fence_vmware_rest-3-fix-encode-issue.patch

bf99d3
From 2ac3b05200477f3f04ce73de439e84c10a269552 Mon Sep 17 00:00:00 2001
bf99d3
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
bf99d3
Date: Thu, 2 Jul 2020 12:05:33 +0200
bf99d3
Subject: [PATCH] fence_vmware_rest: remove .encode() that made the list action
bf99d3
 fail on Python 3. It works fine with/without this on Python 2.x
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 a038a096..e49fd566 100644
bf99d3
--- a/agents/vmware_rest/fence_vmware_rest.py
bf99d3
+++ b/agents/vmware_rest/fence_vmware_rest.py
bf99d3
@@ -61,7 +61,7 @@ def get_list(conn, options):
bf99d3
 			fail(EC_STATUS)
bf99d3
 
bf99d3
 	for r in res["value"]:
bf99d3
-		outlets[r["name"].encode("UTF-8")] = ("", state[r["power_state"]])
bf99d3
+		outlets[r["name"]] = ("", state[r["power_state"]])
bf99d3
 
bf99d3
 	return outlets
bf99d3