Type mess in git.latest

Did not get why, but we can have a list of comments instead of stings.

This fixes:
```
     line 107, in _uptodate\n    ret['comment'] += '\\n\\nChanges made: ' + comments\nTypeError:
      cannot concatenate 'str' and 'list' objects\n"
    duration: 366.804
    name: https://github.com/makinacorpus/makina-states.git
    result: false
```
This commit is contained in:
Mathieu Le Marec - Pasquet 2015-12-16 12:52:20 +01:00
parent f1e1b31c82
commit 3c4185f806

View File

@ -104,6 +104,8 @@ def _uptodate(ret, target, comments=None):
# Shouldn't be making any changes if the repo was up to date, but
# report on them so we are alerted to potential problems with our
# logic.
if isinstance(comments, list):
comments = '\n'.join(comments)
ret['comment'] += '\n\nChanges made: ' + comments
return ret