Skip to content

Commit 46ec869

Browse files
committed
fix: use default namespace if not set
Signed-off-by: Calum Murray <[email protected]>
1 parent 0fa7171 commit 46ec869

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/toolsets/core/resources.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ func resourcesScale(params api.ToolHandlerParams) (*api.ToolCallResult, error) {
319319
return api.NewToolCallResult("", fmt.Errorf("namespace is not a string")), nil
320320
}
321321

322+
ns = params.NamespaceOrDefault(ns)
323+
322324
n, ok := name.(string)
323325
if !ok {
324326
return api.NewToolCallResult("", fmt.Errorf("name is not a string")), nil

0 commit comments

Comments
 (0)