Merge pull request #2743 from weaveworks/fix-uuid

Don't fail if only half the system IDs are blank
This commit is contained in:
Marc Carré authored and GitHub committed 2017-01-23 15:00:06 +00:00
commit dd715e18ec
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