Skip to content

Commit 36a3e96

Browse files
authored
Merge pull request containerd#10510 from k8s-infra-cherrypick-robot/cherry-pick-10503-to-release/1.7
[release/1.7] introspection: regenerate UUID if state is empty
2 parents e695ddb + b140792 commit 36a3e96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: services/introspection/local.go

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ func (l *Local) getUUID() (string, error) {
163163
}
164164
return "", err
165165
}
166+
if len(data) == 0 {
167+
return l.generateUUID()
168+
}
166169
u := string(data)
167170
if _, err := uuid.Parse(u); err != nil {
168171
return "", err

0 commit comments

Comments
 (0)