Commit 05a10f0
committed
remove PreDiff and PostDiff hook calls
PreDiff and PostDiff hooks were designed to be called immediately before
and after the PlanResourceChange calls to the provider. Probably due to
the confusing legacy naming of the hooks, these were scattered about the
nodes involved with planning, causing the hooks to be called in a number
of places where they were designed, including data sources and destroy
plans. Since these hooks are not used at all any longer anyway, we can
removed the extra calls with no effect.
If we choose in the future to call PlanResourceChange for resource
destroy plans, the hooks can be re-inserted (even though they currently
are unused) into the new code path which must diverge from the current
combined path of managed and data sources.1 parent dc668df commit 05a10f0
File tree
2 files changed
+2
-44
lines changed- internal/terraform
2 files changed
+2
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
| 1515 | + | |
| 1516 | + | |
1519 | 1517 | | |
1520 | 1518 | | |
1521 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | 413 | | |
426 | 414 | | |
427 | 415 | | |
| |||
437 | 425 | | |
438 | 426 | | |
439 | 427 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | 428 | | |
452 | 429 | | |
453 | 430 | | |
| |||
1567 | 1544 | | |
1568 | 1545 | | |
1569 | 1546 | | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | 1547 | | |
1578 | 1548 | | |
1579 | 1549 | | |
| |||
1601 | 1571 | | |
1602 | 1572 | | |
1603 | 1573 | | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | 1574 | | |
1612 | 1575 | | |
1613 | 1576 | | |
| |||
1643 | 1606 | | |
1644 | 1607 | | |
1645 | 1608 | | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | 1609 | | |
1650 | 1610 | | |
1651 | 1611 | | |
| |||
0 commit comments