From 2a05570354a4fa93020cc299c3672c30678f5b84 Mon Sep 17 00:00:00 2001 From: Craig Peterson <192540+captncraig@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:40:33 -0400 Subject: [PATCH] agentseed: make sure we have a valid uid, or regenerate (#6665) --- internal/agentseed/agentseed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agentseed/agentseed.go b/internal/agentseed/agentseed.go index 0275e81c339b..9ef6a7b09788 100644 --- a/internal/agentseed/agentseed.go +++ b/internal/agentseed/agentseed.go @@ -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 }