Skip to content

Commit

Permalink
CR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rgruner committed Jun 20, 2023
1 parent 9029707 commit 636aad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion granulate_utils/metadata/databricks_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ def _cluster_all_tags_metadata(self) -> Optional[Dict[str, str]]:
raise DatabricksJobNameDiscoverException(f"sparkProperties was not found in {full_spark_app_env=}")

# Convert from [[key, val], [key, val]] to {key: val, key: val}
spark_properties = dict(spark_properties)
try:
spark_properties = dict(spark_properties)
except Exception as e:
raise DatabricksJobNameDiscoverException(f"Failed to parse as dict {full_spark_app_env=}") from e

# First, trying to extract `CLUSTER_TAGS_KEY` property, in case not redacted.
result: Dict[str, str] = {}
Expand Down

0 comments on commit 636aad1

Please sign in to comment.