1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01:00

- do not fail on empty service parameter values

This commit is contained in:
Adrian Schröter 2011-08-29 17:06:12 +02:00
parent 21ecbca6b3
commit f80ce9c663

View File

@ -233,7 +233,9 @@ class Serviceinfo:
try:
for param in service.findall('param'):
option = param.get('name', None)
value = param.text
value = ""
if param.text:
value = param.text
name += " --" + option + " '" + value + "'"
data['command'] = name
self.services.append(data)