Skip to content

Commit 3635a65

Browse files
authored
Workaround for acceptance with dependabot PR (#4029)
## Changes Dependabot PRs are not running acceptance tests seemingly due to a permissions issue. This workaround runs the acceptance tests #4026
1 parent a3123c9 commit 3635a65

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ classifiers = [
4545
]
4646

4747

48-
dependencies = ["databricks-sdk>=0.44.0,<0.45.0",
48+
dependencies = ["databricks-sdk>=0.44.0,<0.54.0",
4949
"databricks-labs-lsql>=0.16.0,<0.17.0",
5050
"databricks-labs-blueprint>=0.10.0,<0.11.0",
5151
"PyYAML>=6.0.0,<6.1.0",

src/databricks/labs/ucx/account/metastores.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def _set_default_catalog(self, workspace_id: int, default_catalog: str):
7979
etag = default_namespace.get().etag
8080
except NotFound as err:
8181
# if not found, the etag is returned in the header
82-
etag = err.details[0].metadata.get("etag")
82+
if err.details[0].metadata:
83+
etag = err.details[0].metadata.get("etag")
8384
default_namespace.update(
8485
allow_missing=True,
8586
field_mask="namespace.value",

0 commit comments

Comments
 (0)