Merge "Default argument value should not be mutable"

This commit is contained in:
Zuul 2019-01-12 14:14:47 +00:00 committed by Gerrit Code Review
commit a3ae75e9f2
1 changed files with 3 additions and 1 deletions

View File

@ -150,9 +150,11 @@ class NovaClient(base.DriverBase):
@sdk.translate_exception
def wait_for_server(self, server, status=consts.VS_ACTIVE,
failures=[consts.VS_ERROR],
failures=None,
interval=2, timeout=None):
"""Wait for server creation complete"""
if failures is None:
failures = [consts.VS_ERROR]
if timeout is None:
timeout = cfg.CONF.default_action_timeout