Skip to content

Commit 6f55a6a

Browse files
Update function docs
1 parent 08a1b97 commit 6f55a6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/controller/agentpool_controller_autoscaling.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ func matchWildcardName(wildcard string, str string) bool {
6565
}
6666
}
6767

68-
// pendingWorkspaceRuns returns the number of agents needed to execute current pending runs for a given agent pool.
69-
// If there are no plan-only runs in the list of current pending runs for a workspace this functoion returns the number of workspaces.
68+
// pendingWorkspaceRuns returns the number pending runs for a given agent pool.
7069
// This function is compatible with HCP Terraform and TFE version v202409-1 and later.
7170
func (ap *agentPoolInstance) pendingWorkspaceRuns(ctx context.Context) (int32, error) {
7271
runs := map[string]struct{}{}

0 commit comments

Comments
 (0)