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 b74f174 commit ddc94bb
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 ddc94bb

Please sign in to comment.