Skip to content

Commit b84b7d7

Browse files
committed
improve(network): simplify if condition to retrieving router interface (#82)
1 parent a62d839 commit b84b7d7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/openstack_mcp_server/tools/network_tools.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,6 @@ def get_router_interfaces(self, router_id: str) -> list[RouterInterface]:
10881088
first = p.fixed_ips[0]
10891089
if isinstance(first, dict):
10901090
subnet_id = first.get("subnet_id")
1091-
else:
1092-
subnet_id = None
10931091
result.append(
10941092
RouterInterface(
10951093
router_id=router_id,

0 commit comments

Comments
 (0)