Skip to content

Commit

Permalink
Fix typo in checkpoint/restore related texts
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Jul 11, 2019
1 parent 217f2e7 commit 1a32074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func restoreCmd(c *cliconfig.RestoreValues, cmd *cobra.Command) error {
defer runtime.DeferredShutdown(false)

if c.Import == "" && c.Name != "" {
return errors.Errorf("--name can only used with --import")
return errors.Errorf("--name can only be used with --import")
}

if c.Name != "" && c.TcpEstablished {
Expand Down
6 changes: 2 additions & 4 deletions libpod/container_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,8 @@ type ContainerCheckpointOptions struct {
// TCPEstablished tells the API to checkpoint a container
// even if it contains established TCP connections
TCPEstablished bool
// Export tells the API to write the checkpoint image to
// the filename set in TargetFile
// Import tells the API to read the checkpoint image from
// the filename set in TargetFile
// TargetFile tells the API to read (or write) the checkpoint image
// from (or to) the filename set in TargetFile
TargetFile string
// Name tells the API that during restore from an exported
// checkpoint archive a new name should be used for the
Expand Down

0 comments on commit 1a32074

Please sign in to comment.