commands: set extra_params to '' if value is None

Change-Id: Ie3077203eabffc2550ec0b7f3af61991dce7c4b9
This commit is contained in:
Christian Berendt 2015-10-15 15:16:29 +02:00
parent 512d64fd78
commit b4510448eb
1 changed files with 2 additions and 0 deletions

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']