Default argument value should not be mutable
Change-Id: Ie45da2c6c54a249baab5d3f9a886334b64606018
This commit is contained in:
parent
1e5e4dd8b4
commit
66a62021a1
|
@ -150,9 +150,11 @@ class NovaClient(base.DriverBase):
|
||||||
|
|
||||||
@sdk.translate_exception
|
@sdk.translate_exception
|
||||||
def wait_for_server(self, server, status=consts.VS_ACTIVE,
|
def wait_for_server(self, server, status=consts.VS_ACTIVE,
|
||||||
failures=[consts.VS_ERROR],
|
failures=None,
|
||||||
interval=2, timeout=None):
|
interval=2, timeout=None):
|
||||||
"""Wait for server creation complete"""
|
"""Wait for server creation complete"""
|
||||||
|
if failures is None:
|
||||||
|
failures = [consts.VS_ERROR]
|
||||||
if timeout is None:
|
if timeout is None:
|
||||||
timeout = cfg.CONF.default_action_timeout
|
timeout = cfg.CONF.default_action_timeout
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue