command: UiHook outputs for diffs
This commit is contained in:
parent
ae6b85e11b
commit
23de2fc2f3
|
@ -13,6 +13,12 @@ type UiHook struct {
|
||||||
Ui cli.Ui
|
Ui cli.Ui
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (h *UiHook) PreDiff(
|
||||||
|
id string, s *terraform.ResourceState) (terraform.HookAction, error) {
|
||||||
|
h.Ui.Output(fmt.Sprintf("Calculating diff for %s", id))
|
||||||
|
return terraform.HookActionContinue, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (h *UiHook) PreRefresh(
|
func (h *UiHook) PreRefresh(
|
||||||
id string, s *terraform.ResourceState) (terraform.HookAction, error) {
|
id string, s *terraform.ResourceState) (terraform.HookAction, error) {
|
||||||
h.Ui.Output(fmt.Sprintf("Refreshing state for %s (ID: %s)", id, s.ID))
|
h.Ui.Output(fmt.Sprintf("Refreshing state for %s (ID: %s)", id, s.ID))
|
||||||
|
|
Loading…
Reference in New Issue