Update vendored opc sdk
This commit is contained in:
parent
d0f5b23b72
commit
d481380a06
|
@ -47,11 +47,23 @@ type CreateSSHKeyInput struct {
|
||||||
// CreateSSHKey creates a new SSH key with the given name, key and enabled flag.
|
// CreateSSHKey creates a new SSH key with the given name, key and enabled flag.
|
||||||
func (c *SSHKeysClient) CreateSSHKey(createInput *CreateSSHKeyInput) (*SSHKey, error) {
|
func (c *SSHKeysClient) CreateSSHKey(createInput *CreateSSHKeyInput) (*SSHKey, error) {
|
||||||
var keyInfo SSHKey
|
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)
|
createInput.Name = c.getQualifiedName(createInput.Name)
|
||||||
if err := c.createResource(&createInput, &keyInfo); err != nil {
|
if err := c.createResource(&createInput, &keyInfo); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, err := c.UpdateSSHKey(&updateSSHKeyInput)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
return c.success(&keyInfo)
|
return c.success(&keyInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2007,22 +2007,22 @@
|
||||||
"revision": "d30f09973e19c1dfcd120b2d9c4f168e68d6b5d5"
|
"revision": "d30f09973e19c1dfcd120b2d9c4f168e68d6b5d5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "fOs3GlAj3fAMTlz+6OyllpZV6ow=",
|
"checksumSHA1": "gyD43l5lH8orGQl7TiqLHRNFtFU=",
|
||||||
"path": "github.com/hashicorp/go-oracle-terraform/compute",
|
"path": "github.com/hashicorp/go-oracle-terraform/compute",
|
||||||
"revision": "c96a23ea6900a1bbf65698abbd1b9a0010576cb5",
|
"revision": "cf979675cc5074d460720f7b97626687bcb1e203",
|
||||||
"revisionTime": "2017-04-20T21:25:45Z"
|
"revisionTime": "2017-05-09T16:19:50Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "DzK7lYwHt5Isq5Zf73cnQqBO2LI=",
|
"checksumSHA1": "DzK7lYwHt5Isq5Zf73cnQqBO2LI=",
|
||||||
"path": "github.com/hashicorp/go-oracle-terraform/helper",
|
"path": "github.com/hashicorp/go-oracle-terraform/helper",
|
||||||
"revision": "c96a23ea6900a1bbf65698abbd1b9a0010576cb5",
|
"revision": "cf979675cc5074d460720f7b97626687bcb1e203",
|
||||||
"revisionTime": "2017-04-20T21:25:45Z"
|
"revisionTime": "2017-05-09T16:19:50Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "AyNRs19Es9pDw2VMxVKWuLx3Afg=",
|
"checksumSHA1": "AyNRs19Es9pDw2VMxVKWuLx3Afg=",
|
||||||
"path": "github.com/hashicorp/go-oracle-terraform/opc",
|
"path": "github.com/hashicorp/go-oracle-terraform/opc",
|
||||||
"revision": "c96a23ea6900a1bbf65698abbd1b9a0010576cb5",
|
"revision": "cf979675cc5074d460720f7b97626687bcb1e203",
|
||||||
"revisionTime": "2017-04-20T21:25:45Z"
|
"revisionTime": "2017-05-09T16:19:50Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "b0nQutPMJHeUmz4SjpreotAo6Yk=",
|
"checksumSHA1": "b0nQutPMJHeUmz4SjpreotAo6Yk=",
|
||||||
|
|
Loading…
Reference in New Issue