corrects the uuid regeneration bug

modules
Jean-Louis Huynen 2019-01-17 13:50:11 +01:00
parent dc26216e44
commit 742fd1cea5
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ func d4loadConfig(d4 *d4S) bool {
(*d4).conf = d4params{} (*d4).conf = d4params{}
(*d4).conf.source = string(readConfFile(d4, "source")) (*d4).conf.source = string(readConfFile(d4, "source"))
(*d4).conf.destination = string(readConfFile(d4, "destination")) (*d4).conf.destination = string(readConfFile(d4, "destination"))
tmpu, err := uuid.FromBytes(readConfFile(d4, "uuid")) tmpu, err := uuid.FromString(string(readConfFile(d4, "uuid")))
if err != nil { if err != nil {
// generate new uuid // generate new uuid
(*d4).conf.uuid = generateUUIDv4() (*d4).conf.uuid = generateUUIDv4()