From b46b26b572664a802ef01138f56864c1282a24de Mon Sep 17 00:00:00 2001 From: Arthur Outhenin-Chalandre Date: Fri, 1 Jul 2022 13:54:41 +0200 Subject: [PATCH] auth: set entity on read to fix import Signed-off-by: Arthur Outhenin-Chalandre --- ceph/resource_auth.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ceph/resource_auth.go b/ceph/resource_auth.go index 07e66bf..4bdd778 100644 --- a/ceph/resource_auth.go +++ b/ceph/resource_auth.go @@ -151,6 +151,9 @@ func resourceAuthRead(ctx context.Context, d *schema.ResourceData, meta interfac return diag.Errorf("Error resource_auth unmarshal on get response: %s", err) } + if err := d.Set("entity", entity); err != nil { + return diag.Errorf("Unable to set entity: %s", err) + } return setAuthResourceData(d, authResponses) }