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 c2fc5f19b..7f6b5abe8 100644 --- a/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py +++ b/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py @@ -70,9 +70,8 @@ def get_platform_name(self) -> str: This used to get the lower case of the platform of the runtime. :return: the name of the platform of the runtime in lower_case. """ - if self.platform is not None: - if self.platform == 'dataproc': - self_id = CspEnv.DATAPROC + if self.platform is not None and self.platform == 'dataproc': + self_id = CspEnv.DATAPROC else: self_id = self.type_id return CspEnv.pretty_print(self_id)