Skip to content

Commit

Permalink
Ignore order for reply_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
cgroschupp committed Mar 13, 2019
1 parent eb67123 commit f811277
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azuread/resource_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func resourceApplication() *schema.Resource {
},

"reply_urls": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Computed: true,
Elem: &schema.Schema{
Expand Down Expand Up @@ -124,7 +124,7 @@ func resourceApplicationCreate(d *schema.ResourceData, meta interface{}) error {
DisplayName: &name,
Homepage: expandADApplicationHomepage(d, name),
IdentifierUris: tf.ExpandStringArrayPtr(d.Get("identifier_uris").([]interface{})),
ReplyUrls: tf.ExpandStringArrayPtr(d.Get("reply_urls").([]interface{})),
ReplyUrls: tf.ExpandStringArrayPtr(d.Get("reply_urls").(*schema.Set).List()),
AvailableToOtherTenants: p.Bool(d.Get("available_to_other_tenants").(bool)),
RequiredResourceAccess: expandADApplicationRequiredResourceAccess(d),
}
Expand Down Expand Up @@ -167,7 +167,7 @@ func resourceApplicationUpdate(d *schema.ResourceData, meta interface{}) error {
}

if d.HasChange("reply_urls") {
properties.ReplyUrls = tf.ExpandStringArrayPtr(d.Get("reply_urls").([]interface{}))
properties.ReplyUrls = tf.ExpandStringArrayPtr(d.Get("reply_urls").(*schema.Set).List())
}

if d.HasChange("available_to_other_tenants") {
Expand Down

0 comments on commit f811277

Please sign in to comment.