Commit 9ee00ba2 authored by bgrant0607's avatar bgrant0607

Merge pull request #2777 from ddysher/node-ip

Query hostIP for Nodes
parents 0c2be7e9 2ecea9ce
......@@ -143,6 +143,12 @@ func (s *MinionController) cloudMinions() (*api.MinionList, error) {
}
for i := range matches {
result.Items[i].Name = matches[i]
hostIP, err := instances.IPAddress(matches[i])
if err != nil {
glog.Errorf("error getting instance ip address for %s: %v", matches[i], err)
} else {
result.Items[i].Status.HostIP = hostIP.String()
}
resources, err := instances.GetNodeResources(matches[i])
if err != nil {
return nil, err
......
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