Merge pull request #28370 from rallytime/bp-28276

Back-port #28276 to 2015.8
This commit is contained in:
Mike Place 2015-10-28 14:37:49 -06:00
commit 4157c8331b

View file

@ -1808,12 +1808,10 @@ def uptodate(name, refresh=False, **kwargs):
if updated.get('result') is False:
ret.update(updated)
elif updated:
else:
ret['changes'] = updated
ret['comment'] = 'Upgrade successful.'
ret['result'] = True
else:
ret['comment'] = 'Upgrade failed.'
return ret