Magdi Hajjaj 0659f1625d Fix dcmanager client not sending --bmc-password during redeploy
The --bmc-password argument was only included in the redeploy request
when --install-values was also provided. Move the bmc_password handling
outside the install_values conditional so it is always sent to the
server when specified.

Test Plan:
- PASS: dcmanager subcloud redeploy with --bmc-password (without
  --install-values), verify bmc_password is sent in the request
- PASS: dcmanager subcloud redeploy with --install-values but WITHOUT
  --bmc-password, verify user is prompted for bmc_password
- PASS: dcmanager subcloud redeploy with BOTH --bmc-password AND
  --install-values, verify bmc_password from CLI is sent (no prompt)
- PASS: dcmanager subcloud redeploy with NEITHER --bmc-password nor
  --install-values, verify bmc_password is not sent in the request
- PASS: Unit tests added covering all four scenarios

Closes-Bug: 2152258
Signed-off-by: Magdi Hajjaj <magdi.hajjaj@windriver.com>
Change-Id: I72b641abc9a93a5025697ef2a38492fa22b28402
2026-05-15 16:00:04 -04:00
2019-04-19 19:52:34 +00:00
2018-08-07 11:51:16 -04:00
2026-04-24 15:07:43 -04:00
2018-09-23 16:31:32 +08:00
2026-01-14 08:45:17 -03:00
S
Description
StarlingX Distributed Cloud Client
5.9 MiB
Languages
Python 99.9%