Merge pull request #9728 from justinsb/aws_id_as_name

Allow nodename to be != hostname, use AWS instance ID on AWS
This commit is contained in:
Satnam Singh
2015-06-18 10:17:39 -07:00
17 changed files with 166 additions and 113 deletions

View File

@@ -483,6 +483,11 @@ func (gce *GCECloud) getInstanceByName(name string) (*compute.Instance, error) {
return res, nil
}
// Implementation of Instances.CurrentNodeName
func (gce *GCECloud) CurrentNodeName(hostname string) (string, error) {
return hostname, nil
}
func (gce *GCECloud) AddSSHKeyToAllInstances(user string, keyData []byte) error {
return wait.Poll(2*time.Second, 30*time.Second, func() (bool, error) {
project, err := gce.service.Projects.Get(gce.projectID).Do()