Fix the helm override update cmd with option --reset
The cmd "system helm-override-update" with the option --reset doesn't reset the user overrides due to the changes in the commit https://review.opendev.org/#/c/665031/. This commit fixes it. Change-Id: I8e935d1409300f1a72be42a49429c526ba1e5e43 Story: 2003908 Task: 28631 Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
parent
34e72c2f5f
commit
876f063ca0
|
@ -153,7 +153,7 @@ class HelmChartsController(rest.RestController):
|
|||
if user_overrides is not None:
|
||||
file_overrides.insert(0, user_overrides)
|
||||
elif flag == 'reset':
|
||||
pass
|
||||
user_overrides = None
|
||||
else:
|
||||
raise wsme.exc.ClientSideError(_("Invalid flag: %s must be either "
|
||||
"'reuse' or 'reset'.") % flag)
|
||||
|
|
Loading…
Reference in New Issue