Fix unhashable type: 'slice' error in upgrade

The previous return type of the function get_upgrade_msg() caused
issues in the dcmanager orchestrator during subcloud upgrades.

With this small change, the output value from this function can now
be read directly without the need for any specific parsing.

Test Plan:
PASS: Create an upgrade strategy, force errors, and verify the accessibility of the output from the Systemcontroller.

Closes-bug: 2043408

Change-Id: I336014269593c504c566a6a902071c160696992b
Signed-off-by: fperez <fabrizio.perez@windriver.com>
This commit is contained in:
fperez 2023-11-13 15:34:51 -03:00 committed by Fabrizio Perez
parent 936a10d71f
commit c1ed66920c
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class UpgradeController(rest.RestController):
except Exception:
LOG.warning("Error opening file %s" % ERROR_FILE)
return {'error_msg:': output}
return output
@wsme_pecan.wsexpose(UpgradeCollection, types.uuid, int, wtypes.text,
wtypes.text)