Fix load-import error on DC upgrade
During DC upgrade orchestration for AIO-DX subcloud the load-import step fails with UnboundLocalError exception since the variable named "local" is not initialized and is later checked against a bool value on the code. This commit initializes the "local" variable. Test Plan PASS: Run DC upgrade orchestration for AIO-DX and verify that load-import step executes successfully PASS: (Regression) run load-import with --local and verify that iso is loaded successfully PASS: (Regression) run load-import without --local and verify that iso is loaded successfully Closes-bug: 1996922 Change-Id: I3bc1ede4d90ed225bb9cf2479fe2f361b71b7cae Signed-off-by: Heitor Matsui <HeitorVieira.Matsui@windriver.com>
This commit is contained in:
parent
cb5acbf38b
commit
4036504636
|
@ -50,6 +50,7 @@ class LoadManager(base.Manager):
|
|||
path = '/v1/loads/import_load'
|
||||
|
||||
active = None
|
||||
local = False
|
||||
load_info = {}
|
||||
for (key, value) in kwargs.items():
|
||||
if key in IMPORT_ATTRIBUTES:
|
||||
|
|
Loading…
Reference in New Issue