salt/modules/ebuild.py: add kwargs to list_upgrades

This is done for API compatibility
This commit is contained in:
Erik Johnson 2016-06-08 16:28:18 -05:00
parent b40fc9bc62
commit 76143b76ca

View file

@ -266,14 +266,12 @@ def _get_upgradable():
call = __salt__['cmd.run_all'](cmd, output_loglevel='trace')
if call['retcode'] != 0:
comment = ''
if 'stderr' in call:
comment += call['stderr']
if 'stdout' in call:
comment += call['stdout']
raise CommandExecutionError(
'{0}'.format(comment)
)
msg = 'Failed to get upgrades'
for key in ('stderr', 'stdout'):
if call[key]:
msg += ': ' + call[key]
break
raise CommandExecutionError(msg)
else:
out = call['stdout']
@ -296,7 +294,7 @@ def _get_upgradable():
return ret
def list_upgrades(refresh=True):
def list_upgrades(refresh=True, **kwargs): # pylint: disable=W0613
'''
List all available package upgrades.