diff --git a/cmd/fleetctl/fleetctl/gitops.go b/cmd/fleetctl/fleetctl/gitops.go index d70d34f87a..9a1e37a08b 100644 --- a/cmd/fleetctl/fleetctl/gitops.go +++ b/cmd/fleetctl/fleetctl/gitops.go @@ -256,7 +256,7 @@ func gitopsCommand() *cli.Command { // Log a deprecation warning if the user is still using no-team.yml if noTeamPresent && noTeamFilename == "no-team.yml" { if logging.TopicEnabled(logging.DeprecatedFieldTopic) { - logf("[!] no-team.yml is deprecated; please rename the file to 'unassigned.yml' and update the team name to 'Unassigned'.\n") + logf("[!] no-team.yml is deprecated; please ensure the fleet name has been updated to 'Unassigned' and rename the file to 'unassigned.yml'.\n") } } diff --git a/pkg/spec/gitops.go b/pkg/spec/gitops.go index 907afb50d6..4f21a2c019 100644 --- a/pkg/spec/gitops.go +++ b/pkg/spec/gitops.go @@ -476,7 +476,7 @@ func GitOpsFromFile(filePath, baseDir string, appConfig *fleet.EnrichedAppConfig return result, multiError.ErrorOrNil() case result.IsNoTeam() && filepath.Base(filePath) != "no-team.yml": multiError = multierror.Append(multiError, fmt.Errorf("file `%s` for No Team must be named `no-team.yml`", filePath)) - multiError = multierror.Append(multiError, errors.New("no-team.yml is deprecated; please rename the file to 'unassigned.yml' and update the team name to 'Unassigned'.")) + multiError = multierror.Append(multiError, errors.New("no-team.yml is deprecated; please ensure the fleet name has been updated to 'Unassigned' and rename the file to 'unassigned.yml'.")) return result, multiError.ErrorOrNil() case result.IsUnassignedTeam() && filepath.Base(filePath) != "unassigned.yml": multiError = multierror.Append(multiError, fmt.Errorf("file `%s` for unassigned hosts must be named `unassigned.yml`", filePath))