From 3c460831ca3b02e32abacf659282ec958260663a Mon Sep 17 00:00:00 2001 From: Deyuan Deng Date: Fri, 6 Mar 2015 13:45:52 -0500 Subject: [PATCH] Use FormatInt instead of string for external id. --- 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 8c2f84e576a..f1e17dfa1d3 100644 --- a/pkg/cloudprovider/gce/gce.go +++ b/pkg/cloudprovider/gce/gce.go @@ -333,7 +333,7 @@ func (gce *GCECloud) ExternalID(instance string) (string, error) { if err != nil { return "", err } - return string(inst.Id), nil + return strconv.FormatUint(inst.Id, 10), nil } // fqdnSuffix is hacky function to compute the delta between hostame and hostname -f.