Skip to content

Commit

Permalink
ioutil still
Browse files Browse the repository at this point in the history
  • Loading branch information
fdevans committed Oct 6, 2023
1 parent 9de37de commit 8e83e7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rundeck/resource_public_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package rundeck
import (
"context"
"fmt"
"io/ioUtil"
"io/ioutil"
"strings"

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8e83e7a

Please sign in to comment.