Skip to content

Commit 9586cd2

Browse files
committed
fix cables
1 parent 926ae45 commit 9586cd2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

generators/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,13 +970,14 @@ async def create_oob_connections(
970970
)
971971
try:
972972
async for node, _ in batch.execute():
973+
hfid_str = ' -> '.join(node.hfid) if isinstance(node.hfid, list) else str(node.hfid)
973974
if hasattr(node, "description"):
974975
self.log.info(
975-
f"- Created [{node.get_kind()}] {node.description.value} from {' -> '.join(node.hfid)}"
976+
f"- Created [{node.get_kind()}] {node.description.value} from {hfid_str}"
976977
)
977978
else:
978979
self.log.info(
979-
f"- Created [{node.get_kind()}] from {' -> '.join(node.hfid)}"
980+
f"- Created [{node.get_kind()}] from {hfid_str}"
980981
)
981982

982983
except ValidationError as exc:

generators/generate_dc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,14 @@ async def create_fabric_peering(self) -> None:
136136
)
137137

138138
async for node, _ in batch.execute():
139+
hfid_str = ' -> '.join(node.hfid) if isinstance(node.hfid, list) else str(node.hfid)
139140
if hasattr(node, "description"):
140141
self.log.info(
141-
f"- Created/Updated [{node.get_kind()}] {node.description.value} from {' -> '.join(node.hfid)}"
142+
f"- Created/Updated [{node.get_kind()}] {node.description.value} from {hfid_str}"
142143
)
143144
else:
144145
self.log.info(
145-
f"- Created/Updated [{node.get_kind()}] from {' -> '.join(node.hfid)}"
146+
f"- Created/Updated [{node.get_kind()}] from {hfid_str}"
146147
)
147148

148149
async def create_ospf_underlay(self) -> None:

0 commit comments

Comments
 (0)