Commit 5d0e82a
Add validation for HSM password availability
Add early validation to fail with a descriptive error message when the
HSM password (cifmw_hsm_password) is neither defined as a variable nor
available in the Zuul secrets file.
This addresses the scenario where both conditions are unmet:
- cifmw_hsm_password is not defined in the job configuration
- The secrets file /var/tmp/qe-secrets/proteccio_pin.yaml does not exist
Previously, this would cause the playbook to continue and fail later
with an unhelpful "cifmw_hsm_password is undefined" error. Now it fails
early with a clear message explaining the two options to resolve it.
Signed-off-by: Mauricio Harley <[email protected]>1 parent a19d1f7 commit 5d0e82a
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments