Skip to content

Commit

Permalink
r/migration: don't plan on unknown URL (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Giau. Tran Minh <[email protected]>

Signed-off-by: Giau. Tran Minh <[email protected]>
  • Loading branch information
giautm authored Nov 3, 2022
1 parent 5f80aec commit 892eb8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/provider/atlas_migration_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ func (r *MigrationResource) ModifyPlan(ctx context.Context, req resource.ModifyP
return
}
if plan != nil {
if plan.URL.IsUnknown() {
return
}
report, err := r.client.Status(ctx, &atlas.StatusParams{
DirURL: plan.DirURL.Value,
URL: plan.URL.Value,
Expand Down

0 comments on commit 892eb8a

Please sign in to comment.