1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-20 05:28:53 +02:00

- do not fail on empty service parameter values

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

View File

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