summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-17 12:02:37 +0100
committerGitHub <noreply@github.com>2021-11-17 12:02:37 +0100
commit85733e0b4a1d246debcc453f4248cbd9bb91a9d1 (patch)
treeaa775d674d2e499972066c56e6da34ec2682cdce /cmd
parentbd6fbb190ba701ff77c084a36b05e64ba9884a78 (diff)
parent33ec8c6698473ab650df65b958e910e03e240fe6 (diff)
downloadpodman-85733e0b4a1d246debcc453f4248cbd9bb91a9d1.tar.gz
podman-85733e0b4a1d246debcc453f4248cbd9bb91a9d1.tar.bz2
podman-85733e0b4a1d246debcc453f4248cbd9bb91a9d1.zip
Merge pull request #12281 from vrothberg/fix-12007
fix remote checkpoint/restore
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/restore.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmd/podman/containers/restore.go b/cmd/podman/containers/restore.go
index 217adc887..4ac14001a 100644
--- a/cmd/podman/containers/restore.go
+++ b/cmd/podman/containers/restore.go
@@ -12,7 +12,6 @@ import (
"github.com/containers/podman/v3/cmd/podman/validate"
"github.com/containers/podman/v3/pkg/domain/entities"
"github.com/containers/podman/v3/pkg/rootless"
- "github.com/containers/podman/v3/pkg/specgenutil"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
@@ -120,12 +119,7 @@ func restore(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
- if len(inputPorts) > 0 {
- restoreOptions.PublishPorts, err = specgenutil.CreatePortBindings(inputPorts)
- if err != nil {
- return err
- }
- }
+ restoreOptions.PublishPorts = inputPorts
argLen := len(args)
if restoreOptions.Import != "" {