From 33b6fc77ea4192aff0e8989b0054b791efbc7a1c Mon Sep 17 00:00:00 2001 From: Steeve Morin Date: Sun, 15 Jul 2018 01:29:31 +0200 Subject: [PATCH] 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 --- pkg/metadata/provider_gcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/metadata/provider_gcp.go b/pkg/metadata/provider_gcp.go index 764c70a81..24c777397 100644 --- a/pkg/metadata/provider_gcp.go +++ b/pkg/metadata/provider_gcp.go @@ -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) }