Define shell.COMMANDS explicitly to avoid random UT failure

Mocking non-existing attribute causes UT faillure.
As a result, neutronclient UT fails depending on
executing order of tests.

Change-Id: Id047527fba9e908938f7157781fb0e36e76011c7
Closes-Bug: #1709652
This commit is contained in:
Akihiro Motoki 2017-08-09 15:23:54 +00:00
parent f9bac29542
commit 4c3fbe2639
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ def check_non_negative_int(value):
return value
COMMANDS = {}
# NOTE(amotoki): This is only to provide compatibility
# to existing neutron CLI extensions. See bug 1706573 for detail.
def _set_commands_dict_for_compat(apiversion, command_manager):