Fix - Hive Metastore None issue (#23520)

(cherry picked from commit be51d534643372ce63be4202cb17b2d73b627347)
This commit is contained in:
Suman Maharana 2025-09-24 10:11:29 +05:30 committed by OpenMetadata Release Bot
parent f7faaa9b2d
commit b75d5bbd4e

View File

@ -229,8 +229,10 @@ def test_connection(
of a metadata workflow or during an Automation Workflow
"""
if service_connection.metastoreConnection and isinstance(
service_connection.metastoreConnection, dict
if (
service_connection.metastoreConnection
and isinstance(service_connection.metastoreConnection, dict)
and len(service_connection.metastoreConnection) > 0
):
try:
service_connection.metastoreConnection = MysqlConnection.model_validate(