Skip to content

Commit ae389b7

Browse files
author
Mayur Khandave
committed
Fix Lint issues
1 parent 312d902 commit ae389b7

File tree

1 file changed

+4
-4
lines changed
  • src/oci-limits-mcp-server/oracle/oci_limits_mcp_server

1 file changed

+4
-4
lines changed

src/oci-limits-mcp-server/oracle/oci_limits_mcp_server/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@ def get_resource_availability(
274274
name=limit_name,
275275
)
276276
if len(limits) == 0:
277-
return {
277+
return [{
278278
"message": f"Limit '{limit_name}' not found for service '{service_name}'"
279-
}
279+
}]
280280

281281
limit_definition = limits[0]
282282
if not limit_definition.is_resource_availability_supported:
283-
return {
283+
return [{
284284
"message": f"Resource availability not supported for limit '{limit_name}'. Consider calling get_limit_value to get the limit value."
285-
}
285+
}]
286286

287287
if limit_definition.scope_type == "AD":
288288
availability_domains = list_availability_domains(compartment_id)

0 commit comments

Comments
 (0)