Merge "commands: set extra_params to '' if value is None"

This commit is contained in:
Jenkins 2015-10-30 09:39:18 +00:00 committed by Gerrit Code Review
commit cb7a132bcd

View File

@ -511,6 +511,8 @@ def discover_subcommands(os_command, subcommands, extra_params):
:return: the list of subcommands discovered
:rtype: list(str)
"""
if extra_params is None:
extra_params = ''
print(("Discovering subcommands of '%s' %s ..."
% (os_command, extra_params)))
blacklist = ['bash-completion', 'complete', 'help']