mirror of https://github.com/k3s-io/k3s
Add IP to hostname in cloudcfg printing.
parent
28f9dfafb3
commit
b3f0e1724d
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue