Don't fail if only half the system IDs are blank
This commit is contained in:
1 parent
84013c4452
commit
929167366a
1 file changed
+1
-1
+1
-1
@@ -30,7 +30,7 @@ func getSystemUUID(hostRoot string) ([]byte, error) {
|
|||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(uuid) == 0 {
|
if len(uuid) == 0 && len(machineid) == 0 {
|
||||||
return nil, errors.New("All system IDs are blank")
|
return nil, errors.New("All system IDs are blank")
|
||||||
}
|
}
|
||||||
return append(machineid, uuid...), nil
|
return append(machineid, uuid...), nil
|
||||||
|
|||||||
Reference in new issue
Block a user