--os-profile option suddenly causes trouble in unit tests

I'll be honest, I have no idea yet why importing osprofiler.profiler
now fails (shell.py:42). Life is short and its dinnertime...

Change-Id: Ic4d1ed6d665e3795fea6d6c6954dd1facab4f5db
This commit is contained in:
Dean Troyer 2017-10-04 16:50:03 -05:00
parent b42a26e981
commit 6ea20b856c

View File

@ -112,9 +112,10 @@ global_options = {
'--os-default-domain': (DEFAULT_DOMAIN_NAME, True, True),
'--os-cacert': ('/dev/null', True, True),
'--timing': (True, True, False),
'--os-profile': ('SECRET_KEY', True, True),
'--os-interface': (DEFAULT_INTERFACE, True, True)
}
if shell.osprofiler_profiler:
global_options['--os-profile'] = ('SECRET_KEY', True, True)
class TestShellArgV(utils.TestShell):