From 8e83e7a27e62fbbc87a2ddfe934c65766658c2a5 Mon Sep 17 00:00:00 2001 From: Forrest Evans Date: Fri, 6 Oct 2023 13:49:19 -0700 Subject: [PATCH] ioutil still --- rundeck/resource_public_key.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rundeck/resource_public_key.go b/rundeck/resource_public_key.go index ce5c743bd..37cd67aaf 100644 --- a/rundeck/resource_public_key.go +++ b/rundeck/resource_public_key.go @@ -3,7 +3,6 @@ package rundeck import ( "context" "fmt" - "io/ioUtil" "io/ioutil" "strings" @@ -87,7 +86,7 @@ func UpdatePublicKey(d *schema.ResourceData, meta interface{}) error { path := d.Get("path").(string) keyMaterial := d.Get("key_material").(string) - keyMaterialReader := ioUtil.NopCloser(strings.NewReader(keyMaterial)) + keyMaterialReader := ioutil.NopCloser(strings.NewReader(keyMaterial)) resp, err := client.StorageKeyUpdate(ctx, path, keyMaterialReader, "application/pgp-keys") if resp.StatusCode == 409 || err != nil { @@ -146,7 +145,7 @@ func ReadPublicKey(d *schema.ResourceData, meta interface{}) error { return err } - keyMaterial, err := ioUtil.ReadAll(resp.Body) + keyMaterial, err := ioutil.ReadAll(resp.Body) if err != nil { return err }