Commit 5edeb4f
CA-228029: Fix update destroy failure in xe-install-supplemental-pack when exception happens
The problem here is that for code like
trap "xe update-pool-clean uuid=$update_uuid" EXIT ERR
trap "xe update-destroy uuid=$update_uuid" ERR
In testing, it will call xe update-destroy first.
After xe update-destroy, xe update-pool-clean will have no object to refer.
We expect the code will call pool_clean first then destroy.
But what we wrote in trap seems cannot make sure this sequence
Signed-off-by: Cheng Zhang <[email protected]>1 parent 3ec9a64 commit 5edeb4f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
| 37 | + | |
0 commit comments