You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deployment migrate: drop plan check and --noplancheck flag
The command now reads from the local TF state file without invoking the
Terraform binary, so there is nothing for the plan check to verify.
Also simplify getCommonArgs to return only the display string (the args
slice was only needed to forward to the plan subprocess).
Co-authored-by: Isaac
returnfmt.Errorf("bundle plan failed with %s, aborting migration. To proceed with migration anyway, re-run the command with --noplancheck option", msg)
66
-
}
67
-
68
-
if!strings.Contains(output, "Plan:") {
69
-
returnfmt.Errorf("cannot parse 'databricks bundle plan%s' output, aborting migration. Skip plan check with --noplancheck option", extraArgsStr)
70
-
}
71
-
72
-
if!strings.Contains(output, "Plan: 0 to add, 0 to change, 0 to delete") {
73
-
returnfmt.Errorf("'databricks bundle plan%s' shows actions planned, aborting migration. Please run 'databricks bundle deploy%s' first to ensure your bundle is up to date, If actions persist after deploy, skip plan check with --noplancheck option", extraArgsStr, extraArgsStr)
0 commit comments