From 36182a76940212d1f38d4423328254300c8f8a67 Mon Sep 17 00:00:00 2001 From: Murali Krishnasamy Date: Wed, 21 Aug 2024 12:16:54 -0400 Subject: [PATCH] fixed pylint errors Signed-off-by: Murali Krishnasamy --- libs/platforms/rosa/hypershift/hypershift.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/platforms/rosa/hypershift/hypershift.py b/libs/platforms/rosa/hypershift/hypershift.py index 1d06761..5488bd7 100644 --- a/libs/platforms/rosa/hypershift/hypershift.py +++ b/libs/platforms/rosa/hypershift/hypershift.py @@ -109,7 +109,7 @@ def get_metadata(self, platform, cluster_name): metadata = {} self.logging.info(f"Getting information for cluster {cluster_name}") metadata_code, metadata_out, metadata_err = self.utils.subprocess_exec( - "rosa describe cluster -c " + cluster_name + " -o json", + "rosa describe cluster -c " + cluster_name + " -o json", extra_params={"universal_newlines": True} ) try: @@ -121,7 +121,7 @@ def get_metadata(self, platform, cluster_name): if status == "ready": self.logging.debug(f"Get metadata of Hypershift cluster {cluster_name}") cluster_mc = self._get_mc(self.get_cluster_id(cluster_name)) - metadata["mgmt_cluster_name"] = cluster_mc + metadata["mgmt_cluster_name"] = cluster_mc platform.environment["mc_kubeconfig"] = platform.environment["path"] + "/kubeconfig_" + cluster_mc return metadata