Go to file
Gustavo Herzmann 2c8cf582df Fix update install-values for subclouds
Currently, all parameter values are being enclosed in quotes when
parsing the subcloud update request. This works fine for string
parameters (description, location, group-id, etc.), however it causes
an issue with the install-values parameter, since it's an yaml file.
This causes the yaml.safe_load() to return a string instead of a
dictionary with the parsed install-values content.

This fix simplifies the parsing function (_get_patch_data) by only
applying the yaml.safe_load() function to the install-values parameter.
Enclosing the fields in quotes is not necessary anymore (related to
issue #1989619, change #857762).

Test plan:
PASS: Update the subcloud description and location through Horizon;
PASS: Update the subcloud with the --install-values parameter through
the CLI.
PASS: Manage a subcloud with the --force parameter (the subcloud manage
command uses the subcloud update endpoint and accepts the --force
param.)

Closes-Bug: #1995716
Related-bug: #1989619

Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
Change-Id: I40194f1b6bf7a8bd480914eac6b659be3e021d19
2022-11-08 13:44:26 -03:00
2018-09-25 08:18:08 -07:00
2019-04-19 19:52:44 +00:00
2018-08-07 11:51:21 -04:00
2022-10-26 17:06:32 -03:00
2019-03-15 10:56:03 -05:00
Description
StarlingX Distributed Cloud
40 MiB
Languages
Python 95.2%
Shell 4.7%
Makefile 0.1%