3
0
Fork 0
forked from mirrors/nixpkgs

test-driver.py: fix weird non-pythonism

This commit is contained in:
Patrick Hilhorst 2021-11-19 22:28:32 +01:00
parent 7ed2f6e55d
commit a8f693ed48
No known key found for this signature in database
GPG key ID: 3BB083304DADC0FF

View file

@ -1183,9 +1183,7 @@ class Driver:
serial_stdout_on=self.serial_stdout_on,
Machine=Machine, # for typing
)
machine_symbols = {
m.name: self.machines[idx] for idx, m in enumerate(self.machines)
}
machine_symbols = {m.name: m for m in self.machines}
vlan_symbols = {
f"vlan{v.nr}": self.vlans[idx] for idx, v in enumerate(self.vlans)
}