mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-09 08:27:18 +02:00
Return error for non-existing runner group. (#2215)
This commit is contained in:
@@ -300,7 +300,7 @@ func (c *Client) GetRunnerGroupByName(ctx context.Context, runnerGroup string) (
|
||||
}
|
||||
|
||||
if runnerGroupList.Count == 0 {
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("no runner group found with name '%s'", runnerGroup)
|
||||
}
|
||||
|
||||
if runnerGroupList.Count > 1 {
|
||||
|
||||
Reference in New Issue
Block a user