2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-25 18:37:47 +00:00

Make macmap api case insensitive

This helps usability of the api.
This commit is contained in:
Jarrod Johnson 2018-04-20 13:25:02 -04:00
parent a1156097d2
commit 0481f7889b

View File

@ -462,7 +462,7 @@ def handle_read_api_request(pathcomponents, configmanager):
def dump_macinfo(macaddr):
macaddr = macaddr.replace('-', ':')
macaddr = macaddr.replace('-', ':').lower()
info = _macmap.get(macaddr, None)
if info is None:
raise exc.NotFoundException(