Skip to content

Commit

Permalink
Merge pull request #22406 from evgeni/network-list
Browse files Browse the repository at this point in the history
add `list` as an alias to list networks
  • Loading branch information
openshift-merge-bot[bot] committed Apr 17, 2024
2 parents 4817811 + 7b3456b commit 60e0ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/podman/networks/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var (
networklistDescription = `List networks`
networklistCommand = &cobra.Command{
Use: "ls [options]",
Aliases: []string{"list"},
Args: validate.NoArgs,
Short: "List networks",
Long: networklistDescription,
Expand Down
2 changes: 2 additions & 0 deletions test/system/500-networking.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ load helpers.network
heading="NETWORK *ID *NAME *DRIVER"
run_podman network ls
assert "${lines[0]}" =~ "^$heading\$" "network ls header missing"
run_podman network list
assert "${lines[0]}" =~ "^$heading\$" "network list header missing"

run_podman network ls --noheading
assert "$output" !~ "$heading" "network ls --noheading shows header anyway"
Expand Down

1 comment on commit 60e0ef3

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.