Skip to content

Commit 50969c2

Browse files
committed
870-2
1 parent 74fc580 commit 50969c2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sempy_labs/_sql_endpoints.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ def refresh_sql_endpoint_metadata(
128128
else:
129129
raise ValueError("Invalid type. Must be 'Lakehouse' or 'MirroredDatabase'.")
130130

131-
payload = None
132-
timeout_unit = timeout_unit.capitalize()
133-
if timeout_unit != "Minutes" and timeout_value != 15:
134-
payload = {"timeout": {"timeUnit": timeout_unit, "value": timeout_value}}
131+
payload = {"timeout": {"timeUnit": timeout_unit, "value": timeout_value}}
135132

136133
result = _base_api(
137134
request=f"v1/workspaces/{workspace_id}/sqlEndpoints/{sql_endpoint_id}/refreshMetadata",

0 commit comments

Comments
 (0)