From d481380a06310b0bc4a7ac55790b26f769e8d7a5 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 9 May 2017 12:46:16 -0600 Subject: [PATCH] Update vendored opc sdk --- .../go-oracle-terraform/compute/ssh_keys.go | 12 ++++++++++++ vendor/vendor.json | 14 +++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/vendor/github.com/hashicorp/go-oracle-terraform/compute/ssh_keys.go b/vendor/github.com/hashicorp/go-oracle-terraform/compute/ssh_keys.go index 8ae2b03c2..4ad000a43 100644 --- a/vendor/github.com/hashicorp/go-oracle-terraform/compute/ssh_keys.go +++ b/vendor/github.com/hashicorp/go-oracle-terraform/compute/ssh_keys.go @@ -47,11 +47,23 @@ type CreateSSHKeyInput struct { // CreateSSHKey creates a new SSH key with the given name, key and enabled flag. func (c *SSHKeysClient) CreateSSHKey(createInput *CreateSSHKeyInput) (*SSHKey, error) { var keyInfo SSHKey + // We have to update after create to get the full ssh key into opc + updateSSHKeyInput := UpdateSSHKeyInput{ + Name: createInput.Name, + Key: createInput.Key, + Enabled: createInput.Enabled, + } + createInput.Name = c.getQualifiedName(createInput.Name) if err := c.createResource(&createInput, &keyInfo); err != nil { return nil, err } + _, err := c.UpdateSSHKey(&updateSSHKeyInput) + if err != nil { + return nil, err + } + return c.success(&keyInfo) } diff --git a/vendor/vendor.json b/vendor/vendor.json index 912393487..d851a4387 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -2007,22 +2007,22 @@ "revision": "d30f09973e19c1dfcd120b2d9c4f168e68d6b5d5" }, { - "checksumSHA1": "fOs3GlAj3fAMTlz+6OyllpZV6ow=", + "checksumSHA1": "gyD43l5lH8orGQl7TiqLHRNFtFU=", "path": "github.com/hashicorp/go-oracle-terraform/compute", - "revision": "c96a23ea6900a1bbf65698abbd1b9a0010576cb5", - "revisionTime": "2017-04-20T21:25:45Z" + "revision": "cf979675cc5074d460720f7b97626687bcb1e203", + "revisionTime": "2017-05-09T16:19:50Z" }, { "checksumSHA1": "DzK7lYwHt5Isq5Zf73cnQqBO2LI=", "path": "github.com/hashicorp/go-oracle-terraform/helper", - "revision": "c96a23ea6900a1bbf65698abbd1b9a0010576cb5", - "revisionTime": "2017-04-20T21:25:45Z" + "revision": "cf979675cc5074d460720f7b97626687bcb1e203", + "revisionTime": "2017-05-09T16:19:50Z" }, { "checksumSHA1": "AyNRs19Es9pDw2VMxVKWuLx3Afg=", "path": "github.com/hashicorp/go-oracle-terraform/opc", - "revision": "c96a23ea6900a1bbf65698abbd1b9a0010576cb5", - "revisionTime": "2017-04-20T21:25:45Z" + "revision": "cf979675cc5074d460720f7b97626687bcb1e203", + "revisionTime": "2017-05-09T16:19:50Z" }, { "checksumSHA1": "b0nQutPMJHeUmz4SjpreotAo6Yk=",