From 644a2a3aec2d9622acf0b27f6083a0e20273bd2b Mon Sep 17 00:00:00 2001 From: mattahrens Date: Fri, 3 Nov 2023 09:04:00 -0500 Subject: [PATCH] Fixing pylint with lines too long Signed-off-by: mattahrens --- user_tools/src/spark_rapids_pytools/cloud_api/onprem.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py b/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py index 08cf4b231..2f7e9147e 100644 --- a/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py +++ b/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py @@ -312,8 +312,10 @@ def _get_cost_per_cluster(self, cluster: ClusterGetAccessor): if self.price_provider.name.casefold() == 'dataproc': master_cost = self.__calculate_dataproc_group_cost(cluster, SparkNodeType.MASTER) workers_cost = self.__calculate_dataproc_group_cost(cluster, SparkNodeType.WORKER) - master_cores = cluster.get_nodes_cnt(SparkNodeType.MASTER) * cluster.get_node_core_count(SparkNodeType.MASTER) - worker_cores = cluster.get_nodes_cnt(SparkNodeType.WORKER) * cluster.get_node_core_count(SparkNodeType.WORKER) + master_cores = cluster.get_nodes_cnt(SparkNodeType.MASTER) * \ + cluster.get_node_core_count(SparkNodeType.MASTER) + worker_cores = cluster.get_nodes_cnt(SparkNodeType.WORKER) * \ + cluster.get_node_core_count(SparkNodeType.WORKER) dataproc_cost = self.price_provider.get_container_cost() * (master_cores + worker_cores) total_cost = master_cost + workers_cost + dataproc_cost return total_cost