firehose: fix MaxPayloadSizeToTargetInBytes handling

This commit is contained in:
Piotr Dobrowolski 2022-08-22 18:04:44 +02:00
parent 2c2eeddf66
commit 40a4c37da4

View file

@ -889,7 +889,7 @@ class firehose(metaclass=LogBase):
else:
self.error("Error on EDL Authentification")
return False
elif "MaxPayloadSizeToTargetInBytes" in line:
elif "MaxPayloadSizeToTargetInBytes" in rsp.data:
try:
self.cfg.MemoryName = rsp.data["MemoryName"]
self.cfg.MaxPayloadSizeToTargetInBytes = int(rsp.data["MaxPayloadSizeToTargetInBytes"])