Skip to content

Commit

Permalink
warn on unknown edition for update
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Nov 8, 2024
1 parent 188c2a6 commit bc49587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/autoupdate/agent/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,12 @@ func (u *Updater) Update(ctx context.Context) error {
}
targetVersion := resp.AutoUpdate.AgentVersion
var flags InstallFlags
if resp.Edition == "ent" {
switch resp.Edition {
case modules.BuildEnterprise:
flags |= FlagEnterprise
case modules.BuildOSS, modules.BuildCommunity:
default:
u.Log.WarnContext(ctx, "Unknown edition detected, defaulting to community.", "edition", resp.Edition)
}
if resp.FIPS {
flags |= FlagFIPS
Expand Down

0 comments on commit bc49587

Please sign in to comment.