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

Fix snapshot import with hyphened cluster_name #131

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

marinsalinas
Copy link
Contributor

closes #109

@ghost ghost added the size/XXL label Feb 11, 2020
@ghost ghost added size/M and removed size/XXL labels Feb 11, 2020
@marinsalinas
Copy link
Contributor Author

marinsalinas commented Feb 11, 2020

Hello @sushilvarma2, could you please validate if the error is still happening?

Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM w/ a comment we will likely want to add something to all imports if this comes up again.

@@ -166,3 +170,25 @@ func testAccMongoDBAtlasCloudProviderSnapshotConfig(projectID, clusterName, desc
}
`, projectID, clusterName, description, retentionInDays)
}

func TestResourceMongoDBAtlasCloudProviderSnapshot_snapshotID(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: If this works well then we'll probably want to add this to all import statements since if the project name has hyphens it would fail with any import that isn't ignoring in value hyphens.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it would be great to add it to the remaining resources. But I think by the next release because I wouldn't like to break something. 😅

@marinsalinas marinsalinas merged commit 7054fc2 into master Feb 13, 2020
@marinsalinas marinsalinas deleted the fix-snapshot-import branch February 13, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with import mongodbatlas_cloud_provider_snapshot_restore_job
3 participants