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

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