diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-17 12:02:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 12:02:37 +0100 |
commit | 85733e0b4a1d246debcc453f4248cbd9bb91a9d1 (patch) | |
tree | aa775d674d2e499972066c56e6da34ec2682cdce /cmd/podman | |
parent | bd6fbb190ba701ff77c084a36b05e64ba9884a78 (diff) | |
parent | 33ec8c6698473ab650df65b958e910e03e240fe6 (diff) | |
download | podman-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/podman')
-rw-r--r-- | cmd/podman/containers/restore.go | 8 |
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 != "" { |