Skip to content

Commit

Permalink
Merge pull request containerd#10510 from k8s-infra-cherrypick-robot/c…
Browse files Browse the repository at this point in the history
…herry-pick-10503-to-release/1.7

[release/1.7] introspection: regenerate UUID if state is empty
  • Loading branch information
estesp authored Jul 26, 2024
2 parents e695ddb + b140792 commit 36a3e96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/introspection/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ func (l *Local) getUUID() (string, error) {
}
return "", err
}
if len(data) == 0 {
return l.generateUUID()
}
u := string(data)
if _, err := uuid.Parse(u); err != nil {
return "", err
Expand Down

0 comments on commit 36a3e96

Please sign in to comment.