From e3d75906ea9d26c41efc04d78f6b3501aab8db33 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Wed, 17 Jan 2024 17:07:41 +0100 Subject: [PATCH] cosmos: updating to account for the constant name change --- .../cosmos/cosmosdb_mongo_role_definition_resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go b/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go index 75df8e2d3f3c..e62977abf7cf 100644 --- a/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go +++ b/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go @@ -151,7 +151,7 @@ func (r CosmosDbMongoRoleDefinitionResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - roleType := mongorbacs.MongoRoleDefinitionTypeOne + roleType := mongorbacs.MongoRoleDefinitionTypeCustomRole parameters := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{ Properties: &mongorbacs.MongoRoleDefinitionResource{ DatabaseName: pointer.To(databaseId.Name), @@ -206,7 +206,7 @@ func (r CosmosDbMongoRoleDefinitionResource) Update() sdk.ResourceFunc { return err } - roleType := mongorbacs.MongoRoleDefinitionTypeOne + roleType := mongorbacs.MongoRoleDefinitionTypeCustomRole parameters := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{ Properties: &mongorbacs.MongoRoleDefinitionResource{ DatabaseName: pointer.To(databaseId.Name),