Change GCP metadata SSH keys URL

According to [1] the URL is not sshKeys but ssh-keys now.

[1] https://cloud.google.com/compute/docs/storing-retrieving-metadata

Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
This commit is contained in:
Steeve Morin 2018-07-15 01:29:31 +02:00
parent d05c9c0af6
commit 33b6fc77ea

View File

@ -97,7 +97,7 @@ func gcpGet(url string) ([]byte, error) {
// TODO split them into individual user files and make the ssh
// container construct those users
func (p *ProviderGCP) handleSSH() error {
sshKeys, err := gcpGet(project + "attributes/sshKeys")
sshKeys, err := gcpGet(project + "attributes/ssh-keys")
if err != nil {
return fmt.Errorf("Failed to get sshKeys: %s", err)
}