Skip to content

Commit

Permalink
add dynamic_container_enabled support for datafactory (#15749)
Browse files Browse the repository at this point in the history
part of #15691
  • Loading branch information
brandonros authored Apr 7, 2022
1 parent d512a3f commit 40a05bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/services/datafactory/data_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func expandDataFactoryDatasetAzureBlobStorageLocation(d *pluginsdk.ResourceData)
props := azureBlobStorageLocations[0].(map[string]interface{})

blobStorageLocation := datafactory.AzureBlobStorageLocation{
Container: props["container"].(string),
Container: expandDataFactoryExpressionResultType(props["container"].(string), props["dynamic_container_enabled"].(bool)),
FolderPath: expandDataFactoryExpressionResultType(props["path"].(string), props["dynamic_path_enabled"].(bool)),
FileName: expandDataFactoryExpressionResultType(props["filename"].(string), props["dynamic_filename_enabled"].(bool)),
}
Expand Down Expand Up @@ -465,7 +465,9 @@ func flattenDataFactoryDatasetAzureBlobStorageLocation(input *datafactory.AzureB
result := make(map[string]interface{})

if input.Container != nil {
result["container"] = input.Container
container, dynamicContainerEnabled := flattenDataFactoryExpressionResultType(input.FolderPath)
result["container"] = container
result["dynamic_container_enabled"] = dynamicContainerEnabled
}
if input.FolderPath != nil {
path, dynamicPathEnabled := flattenDataFactoryExpressionResultType(input.FolderPath)
Expand Down

0 comments on commit 40a05bc

Please sign in to comment.