Allow cloud providers to return a node identifier different from the hostname

This commit is contained in:
Justin Santa Barbara
2015-06-12 11:42:38 -04:00
parent dee8d4b90b
commit df87470ecf
11 changed files with 64 additions and 1 deletions

View File

@@ -380,6 +380,11 @@ func (i *Instances) AddSSHKeyToAllInstances(user string, keyData []byte) error {
return errors.New("unimplemented")
}
// Implementation of Instances.CurrentNodeName
func (i *Instances) CurrentNodeName(hostname string) (string, error) {
return hostname, nil
}
func (i *Instances) GetNodeResources(name string) (*api.NodeResources, error) {
glog.V(2).Infof("GetNodeResources(%v) called", name)