Hugo Brito b0abc75142 Fix exception message for strategy create
For the strategy creation, we are unable to get the type from the
request params. Instead, this value must be obtained from the payload.

Test Plan:
1. Test the `dcmanager <strategy_type>-strategy create` command for the following strategies:
- fw-update-strategy, kube-rootca-update-strategy, kube-upgrade-strategy, patch-strategy, prestage-strategy, and upgrade-strategy.
2. Validate that the exception message includes the <strategy_type> and the reason that the command failed. For example:
- "Unable to create strategy of type 'kube-rootca-update': Bad strategy request: Strategy has no steps to apply".
3. Validate other commands delete/abort/apply remains the same.

Closes-Bug: 2026604

Change-Id: Id8c3145c5b8b8d222ade9e93a2172ad5388228c4
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2023-08-10 09:42:54 -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-11-21 16:58:49 +00:00
2019-03-15 10:56:03 -05:00
Description
StarlingX Distributed Cloud
37 MiB
Languages
Python 95.2%
Shell 4.7%
Makefile 0.1%