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

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