Commit bfb93a19 authored by Federico Simoncelli's avatar Federico Simoncelli

openstack: report the nodes external id

parent ad6091be
...@@ -314,7 +314,11 @@ func (i *Instances) IPAddress(name string) (net.IP, error) { ...@@ -314,7 +314,11 @@ func (i *Instances) IPAddress(name string) (net.IP, error) {
// ExternalID returns the cloud provider ID of the specified instance. // ExternalID returns the cloud provider ID of the specified instance.
func (i *Instances) ExternalID(name string) (string, error) { func (i *Instances) ExternalID(name string) (string, error) {
return "", fmt.Errorf("unimplemented") srv, err := getServerByName(i.compute, name)
if err != nil {
return "", err
}
return srv.ID, nil
} }
func (i *Instances) GetNodeResources(name string) (*api.NodeResources, error) { func (i *Instances) GetNodeResources(name string) (*api.NodeResources, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment