Skip to content

Commit

Permalink
CloudIOT registry set removed field to nil. Add specific id format fo…
Browse files Browse the repository at this point in the history
…r access context manager
  • Loading branch information
slevenick committed Nov 8, 2019
1 parent c67cf0d commit 0158c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions products/accesscontextmanager/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
update_minutes: 6
delete_minutes: 6
autogen_async: true
id_format: "{{name}}"
import_format: ["{{name}}"]
examples:
- !ruby/object:Provider::Terraform::Examples
Expand Down
2 changes: 2 additions & 0 deletions third_party/terraform/resources/resource_cloudiot_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ func resourceCloudIoTRegistryRead(d *schema.ResourceData, meta interface{}) erro
}
d.Set("credentials", credentials)
d.Set("log_level", res.LogLevel)
// Removed Computed field must be set to nil to prevent spurious diffs
d.Set("event_notification_config", nil)

return nil
}
Expand Down

0 comments on commit 0158c01

Please sign in to comment.