Fixed AttributeError when logging bmv2 crash in bmv2.py

Change-Id: Ia899a0e5090d3f27694b65f2a75f06500a0b6fec
This commit is contained in:
Carmelo Cascone 2018-06-19 17:45:54 +02:00
parent e76f0c8559
commit df32beae1e

View File

@ -47,8 +47,7 @@ def watchDog(sw):
if s.connect_ex(('127.0.0.1', sw.grpcPort)) == 0:
time.sleep(1)
else:
warn("\n*** WARN: BMv2 instance %s (%s) died!\n"
% (sw.deviceId, sw.name))
warn("\n*** WARN: BMv2 instance %s died!\n" % sw.name)
sw.printBmv2Log()
print ("-" * 80) + "\n"
return