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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user