Skip to content

Commit

Permalink
Merge pull request #14460 from cipherboy/align-docker-podman-load-output
Browse files Browse the repository at this point in the history
Align docker load and podman load output
  • Loading branch information
openshift-merge-robot authored Jun 3, 2022
2 parents 38720d9 + 1b6505d commit 5e15a26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/images/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ func load(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
fmt.Println("Loaded image(s): " + strings.Join(response.Names, ","))
fmt.Println("Loaded image: " + strings.Join(response.Names, "\nLoaded image: "))
return nil
}
12 changes: 6 additions & 6 deletions docs/source/markdown/podman-image-scp.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Suppress the output

```
$ podman image scp alpine
Loaded image(s): docker.io/library/alpine:latest
Loaded image: docker.io/library/alpine:latest
```

```
Expand All @@ -43,12 +43,12 @@ Copying blob 72e830a4dff5 done
Copying config 85f9dc67c7 done
Writing manifest to image destination
Storing signatures
Loaded image(s): docker.io/library/alpine:latest
Loaded image: docker.io/library/alpine:latest
```

```
$ podman image scp Fedora::alpine RHEL::
Loaded image(s): docker.io/library/alpine:latest
Loaded image: docker.io/library/alpine:latest
```

```
Expand All @@ -59,7 +59,7 @@ Copying blob 9450ef9feb15 [--------------------------------------] 0.0b / 0.0b
Copying config 1f97f0559c done
Writing manifest to image destination
Storing signatures
Loaded image(s): docker.io/library/alpine:latest
Loaded image: docker.io/library/alpine:latest
```

```
Expand All @@ -73,7 +73,7 @@ Copying blob 5eb901baf107 skipped: already exists
Copying config 696d33ca15 done
Writing manifest to image destination
Storing signatures
Loaded image(s): docker.io/library/alpine:latest
Loaded image: docker.io/library/alpine:latest
```

```
Expand All @@ -87,7 +87,7 @@ Copying blob 5eb901baf107
Copying config 696d33ca15 done
Writing manifest to image destination
Storing signatures
Loaded image(s): docker.io/library/alpine:latest
Loaded image: docker.io/library/alpine:latest
```

## SEE ALSO
Expand Down
2 changes: 1 addition & 1 deletion test/system/120-load.bats
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ verify_iid_and_name() {
run_podman untag $IMAGE $newname
run_podman image scp -q ${notme}@localhost::$newname

expect="Loaded image(s): $newname"
expect="Loaded image: $newname"
is "$output" "$expect" "-q silences output"

# Confirm that we have it, and that its digest matches our original
Expand Down

0 comments on commit 5e15a26

Please sign in to comment.