Skip to content

Commit

Permalink
Fix unregistration err condition
Browse files Browse the repository at this point in the history
  • Loading branch information
davissp14 committed Jan 16, 2025
1 parent e6ad546 commit 2ae7507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pg_unregister/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func processUnregistration(ctx context.Context) error {
machineID := string(machineBytes)

if len(machineID) != 14 {
return fmt.Errorf("invalid machine id: %s. (expected length 16, got %d)", machineID, len(machineBytes))
return fmt.Errorf("invalid machine id: %s", machineID)
}

member, err := node.RepMgr.MemberByNodeName(ctx, conn, machineID)
Expand Down

0 comments on commit 2ae7507

Please sign in to comment.