Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command/import: attach references before validating provider #22862

Merged
merged 1 commit into from Feb 12, 2020

Conversation

mildwonkey
Copy link
Contributor

There was an order-of-operations bug where the import graph builder was
validating that the provider did not have any resource references before
references were actually being attached. This PR fixes the order of
operations and adds a test (in the command package).

Fixes #22804

There was an order-of-operations bug where the import graph builder was
validating that the provider did not have any resource references before
references were actually being attached. This PR fixes the order of
operations and adds a test (in the command package).

Fixes #22804
@ghost ghost added the sdkv1 [PRs only] Marks changes that may potentially need to be ported to the plugi nSDK label Sep 20, 2019
@mildwonkey mildwonkey requested a review from a team September 20, 2019 15:24
@hashibot hashibot added bug core v0.12 Issues (primarily bugs) reported against v0.12 releases labels Sep 20, 2019
@mildwonkey
Copy link
Contributor Author

EDIT: After much discussion in slack, it was decided that we are better off preserving the existing behavior, even if it was unintentional, for 0.12. I've flagged this as a breaking-change so we can re-examine the behavior for our next major release.

@mildwonkey mildwonkey self-assigned this Sep 20, 2019
@mildwonkey mildwonkey removed the request for review from a team September 20, 2019 19:11
@mildwonkey
Copy link
Contributor Author

This may also address issues such as #21330

@mildwonkey mildwonkey merged commit 80862f3 into master Feb 12, 2020
@mildwonkey mildwonkey deleted the mildwonkey/b-import-provider-datasource branch February 12, 2020 19:00
mildwonkey added a commit that referenced this pull request Feb 12, 2020
Now that #22862 has been merged, terraform will properly pick up the
resource provider configuration from state. We can remove the deprecated
`-provider` flag.
mildwonkey added a commit that referenced this pull request Feb 12, 2020
Now that #22862 has been merged, terraform will properly pick up the
resource provider configuration from state. We can remove the deprecated
`-provider` flag.
@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking-change bug core sdkv1 [PRs only] Marks changes that may potentially need to be ported to the plugi nSDK v0.12 Issues (primarily bugs) reported against v0.12 releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cycle dependency when importing resources with access_token in default Google provider
2 participants