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

azurerm_storage_data_lake_gen2_[filesystem|path] - change the ace property to a TypeSet to ensure consistent ordering #10372

Merged
merged 1 commit into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func resourceStorageDataLakeGen2FileSystem() *schema.Resource {
"properties": MetaDataSchema(),

"ace": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Expand Down Expand Up @@ -123,7 +123,7 @@ func resourceStorageDataLakeGen2FileSystemCreate(d *schema.ResourceData, meta in
return err
}

aceRaw := d.Get("ace").([]interface{})
aceRaw := d.Get("ace").(*schema.Set).List()
acl, err := ExpandDataLakeGen2AceList(aceRaw)
if err != nil {
return fmt.Errorf("Error parsing ace list: %s", err)
Expand Down Expand Up @@ -200,7 +200,7 @@ func resourceStorageDataLakeGen2FileSystemUpdate(d *schema.ResourceData, meta in
return err
}

aceRaw := d.Get("ace").([]interface{})
aceRaw := d.Get("ace").(*schema.Set).List()
acl, err := ExpandDataLakeGen2AceList(aceRaw)
if err != nil {
return fmt.Errorf("Error parsing ace list: %s", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func resourceStorageDataLakeGen2Path() *schema.Resource {
},

"ace": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Expand Down Expand Up @@ -183,7 +183,7 @@ func resourceStorageDataLakeGen2PathCreate(d *schema.ResourceData, meta interfac
default:
return fmt.Errorf("Unhandled resource type %q", resourceString)
}
aceRaw := d.Get("ace").([]interface{})
aceRaw := d.Get("ace").(*schema.Set).List()
acl, err := ExpandDataLakeGen2AceList(aceRaw)
if err != nil {
return fmt.Errorf("Error parsing ace list: %s", err)
Expand Down Expand Up @@ -247,7 +247,7 @@ func resourceStorageDataLakeGen2PathUpdate(d *schema.ResourceData, meta interfac

path := d.Get("path").(string)

aceRaw := d.Get("ace").([]interface{})
aceRaw := d.Get("ace").(*schema.Set).List()
acl, err := ExpandDataLakeGen2AceList(aceRaw)
if err != nil {
return fmt.Errorf("Error parsing ace list: %s", err)
Expand Down