Skip to content

Commit

Permalink
Merge pull request #12240 from umohnani8/table
Browse files Browse the repository at this point in the history
Print headers for system connection ls
  • Loading branch information
openshift-merge-robot authored Nov 10, 2021
2 parents 546ad0e + a55fdbb commit fa8184c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cmd/podman/system/connection/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ func list(cmd *cobra.Command, _ []string) error {
return err
}

if len(cfg.Engine.ServiceDestinations) == 0 {
return nil
}

hdrs := []map[string]string{{
"Identity": "Identity",
"Name": "Name",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/system_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ var _ = Describe("podman system connection", func() {
session := podmanTest.Podman(cmd)
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.Out.Contents()).Should(BeEmpty())
Expect(len(session.OutputToStringArray())).Should(Equal(1))
Expect(session.Err.Contents()).Should(BeEmpty())
})
})
Expand Down
3 changes: 2 additions & 1 deletion test/system/272-system-connection.bats
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function _run_podman_remote() {
# Very basic test, does not actually connect at any time
@test "podman system connection - basic add / ls / remove" {
run_podman system connection ls
is "$output" "" "system connection ls: no connections"
is "$output" "Name URI Identity Default" \
"system connection ls: no connections"

c1="c1_$(random_string 15)"
c2="c2_$(random_string 15)"
Expand Down

0 comments on commit fa8184c

Please sign in to comment.