Commit 326113f
committed
Fix interactive apply asks in no change situation
This commit moves the pre-apply hooks that are now always run
since #522 outside of the check for interactivity or asking for
confirmation.
It also moves
- the early exit condition for the case when there
are no releases to Delete or Update
- the cleanup of released with no change
to before the interactivity check
This does subtly change the behaviour of preapply hooks
when apply is invoked in interactive mode. The hooks will
always be run before confirmation is asked for. In the event
there are no releases to delete or update the preapply hooks
will still run. Given that each preapply hook command must be
idempotent I don't believe this is an issue.
Fixes: #679
Signed-off-by: Thomas Arrow <thomas.arrow@wikimedia.de>1 parent c19f220 commit 326113f
1 file changed
+21
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
1428 | 1426 | | |
| 1427 | + | |
1429 | 1428 | | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
1433 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1434 | 1444 | | |
| 1445 | + | |
1435 | 1446 | | |
1436 | 1447 | | |
1437 | 1448 | | |
| |||
1489 | 1500 | | |
1490 | 1501 | | |
1491 | 1502 | | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | 1503 | | |
1503 | 1504 | | |
1504 | 1505 | | |
| |||
0 commit comments