cloudprovider: gce InstanceID implementation

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
Federico Simoncelli 2015-05-27 03:53:13 -04:00
parent 185d0e19d5
commit afcda70190

View File

@ -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.