Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]

Signed-off-by: Radostin Stoyanov <[email protected]>
  • Loading branch information
rst0git authored and tricktron committed Mar 14, 2022
1 parent 3aa9699 commit 891d320
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pkg/bindings/containers/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func Restore(ctx context.Context, nameOrID string, options *RestoreOptions) (*en

// Open the to-be-imported archive if needed.
var r io.Reader
if i := options.GetImportAchive(); i != "" {
if i := options.GetImportArchive(); i != "" {
params.Set("import", "true")
r, err = os.Open(i)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/bindings/containers/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type RestoreOptions struct {
IgnoreVolumes *bool
IgnoreStaticIP *bool
IgnoreStaticMAC *bool
ImportAchive *string
ImportArchive *string
Keep *bool
Name *string
TCPEstablished *bool
Expand Down
14 changes: 7 additions & 7 deletions pkg/bindings/containers/types_restore_options.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/domain/infra/tunnel/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func (ic *ContainerEngine) ContainerRestore(ctx context.Context, namesOrIds []st
options.WithPublishPorts(opts.PublishPorts)

if opts.Import != "" {
options.WithImportAchive(opts.Import)
options.WithImportArchive(opts.Import)
report, err := containers.Restore(ic.ClientCtx, "", options)
return []*entities.RestoreReport{report}, err
}
Expand Down

0 comments on commit 891d320

Please sign in to comment.