mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Force uuid to lowercase in uuid mapping
Most of the codebase presumes lower case uuid, but the uuid mapping was preserving whatever case the attribute was in, making it case sensitive. In the normal discovery process, this was filled in as lower case. However if id.uuid is filled in manually with uppercase, this broke the node lookup by uuid.
This commit is contained in:
parent
191cd8192a
commit
57b74d59af
@ -1332,7 +1332,7 @@ def _map_unique_ids(nodes=None):
|
||||
del nodes_by_uuid[uuid_by_nodes[node]]
|
||||
if node in fprint_by_nodes:
|
||||
del nodes_by_fprint[fprint_by_nodes[node]]
|
||||
uuid = bigmap[node].get('id.uuid', {}).get('value', None)
|
||||
uuid = bigmap[node].get('id.uuid', {}).get('value', '').lower()
|
||||
if uuid_is_valid(uuid):
|
||||
nodes_by_uuid[uuid] = node
|
||||
fprint = bigmap[node].get(
|
||||
|
Loading…
Reference in New Issue
Block a user