Merge pull request #10503 from samuelkarp/issue-10491

introspection: regenerate UUID if state is empty
This commit is contained in:
Kazuyoshi Kato 2024-07-25 21:14:50 +00:00 committed by GitHub
commit f9903084ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,6 +153,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