Default argument value should not be mutable

Change-Id: Ie45da2c6c54a249baab5d3f9a886334b64606018
This commit is contained in:
Erik Olof Gunnar Andersson 2019-12-16 13:37:38 -08:00
parent 1e5e4dd8b4
commit 66a62021a1
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