From e56aec7ebc9d6492d277bb473beb2df6e0c267c6 Mon Sep 17 00:00:00 2001 From: Timothy Asir Jeyasingh Date: Wed, 13 May 2020 21:10:24 +0530 Subject: [PATCH] Fix service failure on vmware due to unicode error Signed-off-by: Timothy Asir Jeyasingh --- tendrl/gluster_integration/sds_sync/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tendrl/gluster_integration/sds_sync/__init__.py b/tendrl/gluster_integration/sds_sync/__init__.py index 30151af..25a8688 100644 --- a/tendrl/gluster_integration/sds_sync/__init__.py +++ b/tendrl/gluster_integration/sds_sync/__init__.py @@ -922,7 +922,7 @@ def get_device_tree(): cmd = cmd_utils.Command(lsblk) out, err, rc = cmd.run() if not err: - out = out.encode('utf8') + out = unicode(out, errors="ignore").encode('utf8') devlist = map( lambda line: dict(zip(keys, line.split(' '))), out.splitlines()