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:
parent
a1156097d2
commit
0481f7889b
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user