Skip to content

Commit

Permalink
fix: remove ability to update ssh value, which never worked anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Feb 11, 2022
1 parent a51edd0 commit 2cfb9b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tfe/resource_tfe_ssh_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions tfe/resource_tfe_ssh_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
},
Expand Down Expand Up @@ -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)
}

0 comments on commit 2cfb9b0

Please sign in to comment.