func machineIDLegend(ms machine.MachineState, full bool) string { legend := ms.ID if !full { legend = fmt.Sprintf("%s...", ms.ShortID()) } return legend }