From 929167366a5df31e1ab086db20762ca4ac8ff2ef Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 19 Jan 2017 15:57:21 +0000 Subject: [PATCH] Don't fail if only half the system IDs are blank --- net/uuid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/uuid.go b/net/uuid.go index 09bd7753..a8552d97 100644 --- a/net/uuid.go +++ b/net/uuid.go @@ -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