mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
50f48c4bf3
commit
4c5e277367
1 changed files with 2 additions and 0 deletions
|
@ -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: ' + str(comments)
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue