We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d48630 commit 72d9e0aCopy full SHA for 72d9e0a
agent/agentcontainers/api.go
@@ -634,9 +634,8 @@ func (api *API) processUpdatedContainersLocked(ctx context.Context, updated code
634
635
var consecutiveHyphenRegex = regexp.MustCompile("-+")
636
637
-// safeAgentName returns an agent name safe version
638
-// of a folder name, falling back to a safe version
639
-// of the container name if unable to create a name.
+// `safeAgentName` returns a safe agent name derived from a folder name,
+// falling back to the container’s friendly name if needed.
640
func safeAgentName(name string, friendlyName string) string {
641
// Keep only ASCII letters and digits, replacing everything
642
// else with a hyphen.
0 commit comments