diff --git a/tfe/resource_tfe_ssh_key.go b/tfe/resource_tfe_ssh_key.go index 562dedf35..461d9a2c4 100644 --- a/tfe/resource_tfe_ssh_key.go +++ b/tfe/resource_tfe_ssh_key.go @@ -86,8 +86,7 @@ func resourceTFESSHKeyUpdate(d *schema.ResourceData, meta interface{}) error { // Create a new options struct. options := tfe.SSHKeyUpdateOptions{ - Name: tfe.String(d.Get("name").(string)), - Value: tfe.String(d.Get("key").(string)), + Name: tfe.String(d.Get("name").(string)), } log.Printf("[DEBUG] Update SSH key: %s", d.Id()) diff --git a/tfe/resource_tfe_ssh_key_test.go b/tfe/resource_tfe_ssh_key_test.go index 70b1d33a4..fa992cb2b 100644 --- a/tfe/resource_tfe_ssh_key_test.go +++ b/tfe/resource_tfe_ssh_key_test.go @@ -67,7 +67,7 @@ func TestAccTFESSHKey_update(t *testing.T) { resource.TestCheckResourceAttr( "tfe_ssh_key.foobar", "name", "ssh-key-updated"), resource.TestCheckResourceAttr( - "tfe_ssh_key.foobar", "key", "UPDATED-SSH-KEY-CONTENT"), + "tfe_ssh_key.foobar", "key", "SSH-KEY-CONTENT"), ), }, }, @@ -168,6 +168,6 @@ resource "tfe_organization" "foobar" { resource "tfe_ssh_key" "foobar" { name = "ssh-key-updated" organization = tfe_organization.foobar.id - key = "UPDATED-SSH-KEY-CONTENT" + key = "SSH-KEY-CONTENT" }`, rInt) }