2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-28 20:39:40 +00:00

Sort the IP addresses in nodediscover for consistent UI

This commit is contained in:
Jarrod Johnson 2023-07-19 16:16:27 -04:00
parent f16daa44dd
commit 8ea2ba046e

View File

@ -229,6 +229,7 @@ def _printable_ip(sa):
def send_discovery_datum(info):
addresses = info.get('addresses', [])
addresses = util.natural_sort(addresses)
if info['handler'] == pxeh:
enrich_pxe_info(info)
yield msg.KeyValueData({'nodename': info.get('nodename', '')})