Skip to content

Commit

Permalink
Merge pull request #16462 from rhatdan/manifest
Browse files Browse the repository at this point in the history
Add hidden podman manifest inspect -v option
  • Loading branch information
openshift-merge-robot authored Nov 12, 2022
2 parents d8f4832 + 00b2bc9 commit 25c67d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/manifest/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func init() {
})
flags := inspectCmd.Flags()

flags.Bool("verbose", false, "Added for Docker compatibility")
flags.BoolP("verbose", "v", false, "Added for Docker compatibility")
_ = flags.MarkHidden("verbose")
flags.BoolVar(&tlsVerifyCLI, "tls-verify", true, "require HTTPS and verify certificates when accessing the registry")
flags.Bool("insecure", false, "Purely for Docker compatibility")
Expand Down
5 changes: 4 additions & 1 deletion test/system/012-manifest.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ load helpers
iid=$output

run_podman manifest create test:1.0
run_podman manifest inspect --verbose $output
mid=$output
run_podman manifest inspect --verbose $mid
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
run_podman manifest inspect -v $mid
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
run_podman images --format '{{.ID}}' --no-trunc
is "$output" ".*sha256:$iid" "Original image ID still shown in podman-images output"
Expand Down

0 comments on commit 25c67d6

Please sign in to comment.