Skip to content

Commit

Permalink
Merge pull request #338 from terraform-providers/b/app-duplicate-name…
Browse files Browse the repository at this point in the history
…-on-update

application: Don't perform duplicate name check on update unless the name was changed
  • Loading branch information
manicminer authored Nov 5, 2020
2 parents 44f3ad3 + 2f2b3db commit 146bfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/aadgraph/application_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func applicationResourceUpdate(d *schema.ResourceData, meta interface{}) error {

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

if d.Get("prevent_duplicate_names").(bool) {
if d.HasChange("name") && d.Get("prevent_duplicate_names").(bool) {
err := graph.ApplicationCheckNameAvailability(ctx, client, name)
if err != nil {
return err
Expand Down

0 comments on commit 146bfe3

Please sign in to comment.