From afcda701904c3d196abb794f289fb94f605e1184 Mon Sep 17 00:00:00 2001 From: Federico Simoncelli Date: Wed, 27 May 2015 03:53:13 -0400 Subject: [PATCH] cloudprovider: gce InstanceID implementation Signed-off-by: Federico Simoncelli --- pkg/cloudprovider/gce/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/gce/gce.go b/pkg/cloudprovider/gce/gce.go index 4ed1f4b63ef..38544416060 100644 --- a/pkg/cloudprovider/gce/gce.go +++ b/pkg/cloudprovider/gce/gce.go @@ -499,7 +499,7 @@ func (gce *GCECloud) ExternalID(instance string) (string, error) { // InstanceID returns the cloud provider ID of the specified instance. func (gce *GCECloud) InstanceID(instance string) (string, error) { - return "", nil + return gce.projectID + "/" + gce.zone + "/" + canonicalizeInstanceName(instance), nil } // List is an implementation of Instances.List.