From fe49c0a0abe8d0779abfca0bc13ad557173f664d Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Thu, 2 Feb 2017 12:12:18 -0800 Subject: [PATCH] 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. --- consul/state/catalog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/state/catalog.go b/consul/state/catalog.go index 0de93e3f45..03745fb9ab 100644 --- a/consul/state/catalog.go +++ b/consul/state/catalog.go @@ -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.