Don't fail if only half the system IDs are blank

This commit is contained in:
Bryan Boreham committed 2017-01-19 15:57:21 +00:00
1 parent 84013c4452
commit 929167366a
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ func getSystemUUID(hostRoot string) ([]byte, error) {
if err != nil && !os.IsNotExist(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 append(machineid, uuid...), nil