master
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
Description
StarlingX Distributed Cloud Client
Languages
Python
99.9%