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

fixed azurerm_spatial_anchors_account tags argument always forces replacement of spatial_anchors_account resource #11037 #11985

Merged
Merged
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 @@ -19,8 +19,9 @@ import (

func resourceSpatialAnchorsAccount() *pluginsdk.Resource {
return &pluginsdk.Resource{
Create: resourceSpatialAnchorsAccountCreate,
Create: resourceSpatialAnchorsAccountCreateUpdate,
Read: resourceSpatialAnchorsAccountRead,
Update: resourceSpatialAnchorsAccountCreateUpdate,
Delete: resourceSpatialAnchorsAccountDelete,
Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error {
_, err := parse.SpatialAnchorsAccountID(id)
Expand Down Expand Up @@ -59,12 +60,12 @@ func resourceSpatialAnchorsAccount() *pluginsdk.Resource {
Computed: true,
},

"tags": tags.ForceNewSchema(),
"tags": tags.Schema(),
},
}
}

func resourceSpatialAnchorsAccountCreate(d *pluginsdk.ResourceData, meta interface{}) error {
func resourceSpatialAnchorsAccountCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error {
client := meta.(*clients.Client).MixedReality.SpatialAnchorsAccountClient
ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d)
defer cancel()
Expand Down