Compare commits

...

1 commit

Author SHA1 Message Date
Sebastien Blot
7af45e9494 check if machineid is non-empty 2022-04-28 09:32:57 +02:00

View file

@ -65,7 +65,7 @@ func generatePassword(length int) string {
// string.
func generateIDPrefix() (string, error) {
prefix, err := machineid.ID()
if err == nil {
if err == nil && prefix != "" {
return prefix, nil
}
log.Debugf("failed to get machine-id with usual files: %s", err)