Define shell.COMMANDS explicitly to avoid random UT failure

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

Change-Id: Id047527fba9e908938f7157781fb0e36e76011c7
Closes-Bug: #1709652
(cherry picked from commit 4c3fbe2639)
This commit is contained in:
Akihiro Motoki
2017-08-09 15:23:54 +00:00
parent 171febb51e
commit a0893c32c7

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):