2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 08:33:23 +00:00

Fix missing format() leaving {0} literal in error message

This commit is contained in:
Markus Hilger
2026-07-02 22:07:48 +02:00
parent 46ada49401
commit f4c43394d8
+1 -1
View File
@@ -162,7 +162,7 @@ for end_node in end_nodeslist:
if end_node:
end_switches = host_to_switch(end_node, eface)
if not end_switches:
print('Error: net.{0}.switch attribute is not valid')
print('Error: net.{0}.switch attribute is not valid'.format(eface))
continue
path = path_between_nodes(start_switches, end_switches)
print(f'{start_node} to {end_node}: {path}')