From 07017f6cf1f14a02190ee1a2ce5128cb12858b7e Mon Sep 17 00:00:00 2001 From: Arthur Outhenin-Chalandre Date: Mon, 27 Jun 2022 09:17:23 +0200 Subject: [PATCH] auth: fix import of auth resource Signed-off-by: Arthur Outhenin-Chalandre --- ceph/resource_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph/resource_auth.go b/ceph/resource_auth.go index d68953f..07e66bf 100644 --- a/ceph/resource_auth.go +++ b/ceph/resource_auth.go @@ -129,7 +129,7 @@ func resourceAuthRead(ctx context.Context, d *schema.ResourceData, meta interfac if err != nil { return diag.Errorf("Unable to connect to Ceph: %s", err) } - entity := d.Get("entity").(string) + entity := d.Id() command, err := json.Marshal(map[string]interface{}{ "prefix": "auth get",