Fix KeyError: port in portal log display

The listen entry display string still referenced l['port'] after
port was stripped from entries. Update to show IP only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 15:23:11 -05:00
parent fb4a51b24d
commit d2dffacb33

View File

@@ -323,7 +323,7 @@ async def _migrate_iscsi_portals(
for portal in portals:
comment = portal.get("comment", "")
ips = ", ".join(f"{l['ip']}:{l['port']}" for l in portal.get("listen", []))
ips = ", ".join(l['ip'] for l in portal.get("listen", []))
log.info("%s iSCSI portal %s [%s]", _bold("──"), _bold_cyan(repr(comment)), ips)
my_ips = _ip_set(portal)