Skip to content

Commit

Permalink
agentseed: make sure we have a valid uid, or regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
captncraig authored and ptodev committed Sep 2, 2024
1 parent ef37b7c commit a4bb406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agentseed/agentseed.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ func readSeedFile(path string, logger log.Logger) (*AgentSeed, error) {
level.Error(logger).Log("msg", "Decoding seed file", "err", err)
return nil, err
}

if seed.UID == "" {
level.Error(logger).Log("msg", "Seed file has empty uid")
return nil, err
}
return seed, nil
}
Expand Down

0 comments on commit a4bb406

Please sign in to comment.