-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_cosmosdb_sql_container,azurerm_cosmosdb_gremlin_graph: fix the case-insensitive issue about indexing_mode property after 3.0 release #16152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix @sinbai, two minor comments but once those are resolved this should be good to go.
@@ -121,7 +121,7 @@ func CosmosDbIndexingPolicySchema() *pluginsdk.Schema { | |||
} | |||
|
|||
} | |||
return validation.StringInSlice(keys, features.ThreePointOhBeta()) | |||
return validation.StringInSlice(keys, !features.ThreePointOhBeta()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can start removing the ThreePointOh
and ThreePointOhBeta
flags
return validation.StringInSlice(keys, !features.ThreePointOhBeta()) | |
return validation.StringInSlice(keys, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Fixed.
@@ -131,7 +131,7 @@ func resourceCosmosDbGremlinGraph() *pluginsdk.Resource { | |||
"None", | |||
} | |||
} | |||
return validation.StringInSlice(keys, features.ThreePointOhBeta()) | |||
return validation.StringInSlice(keys, !features.ThreePointOhBeta()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return validation.StringInSlice(keys, !features.ThreePointOhBeta()) | |
return validation.StringInSlice(keys, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sinbai, LGTM 🌻
…e case-insensitive issue about indexing_mode property after 3.0 release (#16152) * fix issue 16086 * update code
This functionality has been released in v3.1.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
The attribute is case-sensitive now. Fixed after provider's v3 release here: hashicorp/terraform-provider-azurerm#16152.
The attribute is case-sensitive now. Fixed after provider's v3 release here: hashicorp/terraform-provider-azurerm#16152.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fix issue #16086. The
indexing_mode
property should be case-sensitive in 3.0 model. Also, fix the same issue about azurerm_cosmosdb_gremlin_graph resource.