mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
chore(lint): apply the 3.1 f-string wave to the kernel-datapath code
The rebase onto 65c858d45 brought upstream's UP032 enforcement; the
conflict resolution kept this branch's semantics on the overlapping
lines, so their .format() calls needed the conversion afterwards
(ruff check --fix, 41 sites) plus the formatter's rewrap (7 files).
Replicates the CI recipe locally: pip check, ruff check/format, mypy
2.3.1 (clean, 434 files), unit suite 2216 passed.
This commit is contained in:
9 files changed
+49
-158
No files matched your search
@@ -573,10 +573,10 @@ class IOLDockerVM(VendorDockerVM):
|
||||
anchor = self._kernel_host_ifc(adapter_number, port_number)
|
||||
if anchor is None:
|
||||
raise DockerError(
|
||||
"Bay {bay}/{unit} of IOL container '{name}' has no TAP anchor to carry a kernel "
|
||||
f"Bay {adapter_number}/{port_number} of IOL container '{self._name}' has no TAP anchor to carry a kernel "
|
||||
"link (this compute's uBridge lacks the tap module or bridge delete_nio_tap, "
|
||||
"or the node was started before the kernel-datapath support); restart the "
|
||||
"node after upgrading uBridge".format(bay=adapter_number, unit=port_number, name=self._name)
|
||||
"node after upgrading uBridge"
|
||||
)
|
||||
await self._ensure_unix_port_bridge(adapter_number, port_number)
|
||||
await self._ensure_anchor(adapter_number, port_number)
|
||||
|
||||
Reference in new issue
Block a user