mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
parent
f1e1b31c82
commit
3c4185f806
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user