Update firehose.py

This commit is contained in:
Bjoern Kerler 2022-03-23 12:45:46 +01:00 committed by GitHub
parent 5227493816
commit 3cf3324209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -848,8 +848,12 @@ class firehose(metaclass=LogBase):
rsp = self.xmlsend(connectcmd)
if not rsp.resp:
if rsp.error=="":
try:
if "MemoryName" in rsp.data:
self.cfg.MemoryName = rsp.data["MemoryName"]
except TypeError:
self.warning("!DEBUG! rsp.data: '%s'" % (rsp.data,))
return self.configure(lvl + 1)
if "MaxPayloadSizeFromTargetInBytes" in rsp.data:
self.cfg.MaxPayloadSizeFromTargetInBytes = int(rsp.data["MaxPayloadSizeFromTargetInBytes"])
if "MaxPayloadSizeToTargetInBytes" in rsp.data: