mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Don't go over 80 per line
This commit is contained in:
parent
03415ae4e7
commit
41c51550d4
@ -54,7 +54,8 @@ def _handle_request(r):
|
||||
|
||||
if apiresponse.getAttribute('Status') == "ERROR":
|
||||
data = []
|
||||
for e in apiresponse.getElementsByTagName("Errors")[0].getElementsByTagName("Error"):
|
||||
for e in apiresponse.getElementsByTagName("Errors")[0]
|
||||
.getElementsByTagName("Error"):
|
||||
data.append(e.firstChild.data)
|
||||
error = ''.join(data)
|
||||
log.info(apiresponse)
|
||||
@ -76,7 +77,8 @@ def xml_to_dict(xml):
|
||||
return xml.firstChild.data
|
||||
else:
|
||||
return None
|
||||
elif xml.childNodes.length == 1 and xml.childNodes[0].nodeType == xml.CDATA_SECTION_NODE:
|
||||
elif xml.childNodes.length == 1 and
|
||||
xml.childNodes[0].nodeType == xml.CDATA_SECTION_NODE:
|
||||
return xml.childNodes[0].data
|
||||
else:
|
||||
for n in xml.childNodes:
|
||||
|
Loading…
Reference in New Issue
Block a user