Merge "Skip description from service transformation"

This commit is contained in:
Jenkins 2016-02-04 18:18:02 +00:00 committed by Gerrit Code Review
commit c5725038d3

View File

@ -48,6 +48,9 @@ class Controller(object):
srv = {} srv = {}
srv['id'] = package.id srv['id'] = package.id
srv['name'] = package.name srv['name'] = package.name
if len(package.description) > 256:
srv['description'] = u"{0} ...".format(package.description[:253])
else:
srv['description'] = package.description srv['description'] = package.description
srv['bindable'] = True srv['bindable'] = True
srv['tags'] = [] srv['tags'] = []