Refactor: libcrmcluster: Drop redundancy in pcmk__node_name_from_uuid()
The only way a node can enter the crm_peer_cache is via
pcmkget_node(). In that function, if a node is not found in the cache
already, a new node object is allocated and added to the cache. The new
node object's uuid member is set to the return value of
pcmkcluster_node_uuid() (if the uuid argument is empty, and it always
is empty within corosync.c and cpg.c when looking up a Corosync node).
For a Corosync node, pcmkcluster_node_uuid() calls
pcmkcorosync_uuid(). This returns a string representation of the
node's ID.
The point is that if a Corosync node has been added to the cache, then
we can find it based on ID if and only if we can find it based on UUID.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>