Skip to content

Commit

Permalink
Allow 64 characters machine id
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 29, 2022
1 parent d72877f commit cf8e9bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func CustomID(cid string) error {
}

cid = strings.TrimSpace(cid)
if l := len(cid); l != 32 {
return fmt.Errorf("expected 32 characters machine id, got %d", l)
if l := len(cid); l != 32 && l != 64 {
return fmt.Errorf("expected 32 or 64 characters machine id, got %d", l)
}

id = cid
Expand Down

0 comments on commit cf8e9bb

Please sign in to comment.