Skip to content

Commit 881a788

Browse files
authored
Merge pull request containerd#10511 from k8s-infra-cherrypick-robot/cherry-pick-10503-to-release/1.6
[release/1.6] introspection: regenerate UUID if state is empty
2 parents d157b85 + a4846fc commit 881a788

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/introspection/local.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ func (l *Local) getUUID() (string, error) {
146146
}
147147
return "", err
148148
}
149+
if len(data) == 0 {
150+
return l.generateUUID()
151+
}
149152
u := string(data)
150153
if _, err := uuid.Parse(u); err != nil {
151154
return "", err

0 commit comments

Comments
 (0)