Need clarification on the doc "https://learn.hashicorp.com/tutorials/consul/application-leader-elections"

In application-leader-election - here https://learn.hashicorp.com/tutorials/consul/application-leader-elections#discover-the-leader

the keys is called as ‘key’, but the API uses a key named ‘lead’.

I believe, As with leader election, all instances that are participating should agree on the key being used to coordinate. This key will be referred to as key . might be changed to As with leader election, all instances that are participating should agree on the key being used to coordinate. This key will be referred to as lead .

Or I am missing anything?

1 Like

Hi @prabhakhar,

Thanks for finding this! You are correct, that should be updated to lead. I’ll look at updating this shortly.

Appreciate your thorough review!

Thank for your reply! you guys rock.

@prabhakhar, the guide has now been updated with the correct key name.

Thanks again!