1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

fixed "osc results" output in case of a missing status node

In this case, the code from the result element is used.
This commit is contained in:
Marcus Huewe 2016-06-10 14:40:12 +02:00
parent 95b6087c5b
commit ca9da9df05

View File

@ -5440,7 +5440,7 @@ def result_xml_to_dicts(xml):
rmap['dirty'] = node.get('dirty')
rmap['repostate'] = node.get('code')
rmap['pkg'] = rmap['package'] = rmap['pac'] = ''
rmap['code'] = ''
rmap['code'] = node.get('code')
rmap['details'] = ''
details = None
statusnode = node.find('status')