mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Properly fix concat list issue in git state.
No need to check if it's a list. Just join it before passing to _uptodate()
This commit is contained in:
parent
941bcaed07
commit
6c5bac4909
1 changed files with 1 additions and 3 deletions
|
@ -104,8 +104,6 @@ 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
|
||||
|
||||
|
@ -1196,7 +1194,7 @@ def latest(name,
|
|||
ret['comment'] = _format_comments(comments)
|
||||
ret['changes']['revision'] = {'old': local_rev, 'new': new_rev}
|
||||
else:
|
||||
return _uptodate(ret, target, comments)
|
||||
return _uptodate(ret, target, _format_comments(comments))
|
||||
else:
|
||||
if os.path.isdir(target):
|
||||
if force_clone:
|
||||
|
|
Loading…
Add table
Reference in a new issue