Reduce the size of the UUID Lookup Length restriction from `8` to `2`.

I'm torn on this.  It's useful from a UX perspective for an operator to
be able to type in something that's short.  At the same time, by
enforcing an `8` character length, we reduced the probability of a user
depending on the behavior and having it suddenly stop working in the
future when a duplicate prefix is injected into the environment.
pull/2707/head
Sean Chittenden 8 years ago
parent 01588efc2a
commit fe49c0a0ab
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16

@ -13,7 +13,7 @@ const (
// minUUIDLookupLen is used as a minimum length of a node name required before
// we test to see if the name is actually a UUID and perform an ID-based node
// lookup.
minUUIDLookupLen = 8
minUUIDLookupLen = 2
)
// Nodes is used to pull the full list of nodes for use during snapshots.

Loading…
Cancel
Save