@@ -316,9 +316,9 @@ func (i *RecipeInstall) install(ctx context.Context) error {
316316 return err
317317 }
318318
319- if _ , ok := availableRecipes .GetRecipeDetection (types .SuperAgentRecipeName ); i .hostHasSuperAgentProcess () && ! ok {
319+ if _ , ok := availableRecipes .GetRecipeDetection (types .AgentControlRecipeName ); i .hostHasAgentControlProcess () && ! ok {
320320 availableRecipes = append (availableRecipes , & recipes.RecipeDetectionResult {
321- Recipe : & types.OpenInstallationRecipe {Name : types .SuperAgentRecipeName },
321+ Recipe : & types.OpenInstallationRecipe {Name : types .AgentControlRecipeName },
322322 Status : execution .RecipeStatusTypes .AVAILABLE ,
323323 DurationMs : 0 ,
324324 })
@@ -392,13 +392,13 @@ func (i *RecipeInstall) reportRecipeRecommendations(availableRecipes recipes.Rec
392392 }
393393}
394394
395- // Skip reporting for the infra agent if super agent has been targeted.
395+ // Skip reporting for the infra agent if agent control has been targeted.
396396// The logs-integration also reports a status for the infra agent
397397// and should be skipped as well.
398398func (i * RecipeInstall ) shouldSkipReporting (name string ) bool {
399399 if name == "infrastructure-agent-installer" || name == "logs-integration" {
400400 for _ , v := range i .RecipeNames {
401- if v == "super- agent" || v == "logs-integration-super- agent" {
401+ if v == "agent-control " || v == "logs-integration-agent-control " {
402402 return true
403403 }
404404 }
@@ -441,11 +441,11 @@ func (i *RecipeInstall) isTargetInstallRecipe(recipeName string) bool {
441441
442442func (i * RecipeInstall ) checkSuper (bundler RecipeBundler ) * recipes.Bundler {
443443 bun , ok := bundler .(* recipes.Bundler )
444- if i .hostHasSuperAgentProcess () && ok {
444+ if i .hostHasAgentControlProcess () && ok {
445445 bun .HasSuperInstalled = true
446- log .Debugf ("Super agent process found." )
446+ log .Debugf ("Agent Control process found." )
447447 } else {
448- log .Debugf ("Super agent process not found." )
448+ log .Debugf ("Agent Control process not found." )
449449 }
450450 log .Debugf ("Preparing bundle" )
451451 return bun
@@ -463,9 +463,9 @@ func bundleRecipeProcessing(bundle *recipes.Bundle, bun *recipes.Bundler) {
463463}
464464
465465// installAdditionalBundle installs additional bundles for the given recipes.
466- // It checks if the host has a super agent process running, and proceeds with the additional bundle.
466+ // It checks if the host has a agent control process running, and proceeds with the additional bundle.
467467// If the list of recipes is provided, it creates a targeted bundle; otherwise, it creates a guided bundle.
468- // If the host has super agent installed infra agent and logs agent would be NULL
468+ // If the host has agent control installed infra agent and logs agent would be NULL
469469// It then installs the additional bundle and reports any unsupported recipes.
470470func (i * RecipeInstall ) installAdditionalBundle (bundler RecipeBundler , bundleInstaller RecipeBundleInstaller , repo * recipes.RecipeRepository ) error {
471471 var additionalBundle * recipes.Bundle
@@ -491,7 +491,7 @@ func (i *RecipeInstall) installAdditionalBundle(bundler RecipeBundler, bundleIns
491491 if bundleInstaller .InstalledRecipesCount () == 0 {
492492 for _ , recipe := range i .RecipeNames {
493493 if bun .HasSuperInstalled && bun .IsCore (recipe ) {
494- return types .NewDetailError (types .EventTypes .OtherError , types .ErrSuperAgent .Error ())
494+ return types .NewDetailError (types .EventTypes .OtherError , types .ErrAgentControl .Error ())
495495 }
496496 }
497497
@@ -853,6 +853,6 @@ func (i *RecipeInstall) finishHandlingFailure(recipeName string) {
853853 }
854854}
855855
856- func (i * RecipeInstall ) hostHasSuperAgentProcess () bool {
857- return i .processEvaluator .FindProcess (types .SuperAgentProcessName )
856+ func (i * RecipeInstall ) hostHasAgentControlProcess () bool {
857+ return i .processEvaluator .FindProcess (types .AgentControlProcessName )
858858}
0 commit comments