Merge pull request #163 from brendandburns/cloudcfg

Add IP to hostname in cloudcfg printing.
This commit is contained in:
Daniel Smith 2014-06-18 15:31:56 -07:00
commit e2974a0a75

View File

@ -99,7 +99,7 @@ func (h *HumanReadablePrinter) makeLabelsList(labels map[string]string) string {
func (h *HumanReadablePrinter) printPod(pod api.Pod, w io.Writer) error {
_, err := fmt.Fprintf(w, "%s\t%s\t%s\t%s\n",
pod.ID, h.makeImageList(pod.DesiredState.Manifest), pod.CurrentState.Host, h.makeLabelsList(pod.Labels))
pod.ID, h.makeImageList(pod.DesiredState.Manifest), pod.CurrentState.Host+"/"+pod.CurrentState.HostIP, h.makeLabelsList(pod.Labels))
return err
}