Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/control/cmd/daos/pretty/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ func PrintContainers(out io.Writer, poolID string, containers []*daos.ContainerI
uuidTitle := "UUID"
labelTitle := "Label"
layoutTitle := "Layout"
titles := []string{labelTitle}
titles := []string{labelTitle, uuidTitle}
if verbose {
titles = append(titles, uuidTitle, layoutTitle)
titles = append(titles, layoutTitle)
}

table := []txtfmt.TableRow{}
Expand Down
20 changes: 10 additions & 10 deletions src/control/cmd/daos/pretty/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ func TestPretty_PrintContainers(t *testing.T) {
},
verbose: false,
expPrintStr: fmt.Sprintf(`Containers in pool %s:
Label
-----
container-1
`, testPoolID),
Label UUID
----- ----
container-1 %s
`, testPoolID, testUUID1.String()),
},
"single container verbose": {
poolID: testPoolID,
Expand Down Expand Up @@ -289,12 +289,12 @@ func TestPretty_PrintContainers(t *testing.T) {
},
verbose: false,
expPrintStr: fmt.Sprintf(`Containers in pool %s:
Label
-----
container-1
container-2

`, testPoolID),
Label UUID
----- ----
container-1 %s
container-2 %s
%s
`, testPoolID, testUUID1.String(), testUUID2.String(), testUUID3.String()),
},
"multiple containers verbose": {
poolID: testPoolID,
Expand Down
Loading