[PATCH v1] framework/dut: fix pylama errors
Dong, JunX
junx.dong at intel.com
Fri Jan 7 08:42:08 CET 2022
On Monday, December 6, 2021 8:15 PM Juraj Linkeš <juraj.linkes at pantheon.tech> wrote:
> 628,7 +643,7 @@ class Dut(Crb):
> if pci_bus == port_info['pci']:
> port = port_info['port']
> break
> - if port and port.get_ipv4_addr() == crbs['IP'].strip():
> + if port and port.get_ipv4_addr() == self.crb['IP'].strip():
Suggest use get_ip_address instance method to get crb IP, not access inner date structure directly.
> return True
> else:
> return False
--
Dong Jun
More information about the dts
mailing list