diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2019-09-25 16:25:10 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2019-09-26 18:19:07 -0400 |
commit | 65b20bd521302020ff229d455c60102e15a41b8a (patch) | |
tree | c378d118a2661cb619715a425b8deec3e4f4c993 /libpod/image/image.go | |
parent | 851e3775d5d2e605bcb612054a94ac6de005f834 (diff) | |
download | podman-65b20bd521302020ff229d455c60102e15a41b8a.tar.gz podman-65b20bd521302020ff229d455c60102e15a41b8a.tar.bz2 podman-65b20bd521302020ff229d455c60102e15a41b8a.zip |
Correct use of reexec.Init()
A true result from reexec.Init() isn't an error, but it indicates that
main() should exit with a success exit status.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r-- | libpod/image/image.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go index 0be6eeeb9..855da8611 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -29,7 +29,6 @@ import ( "github.com/containers/libpod/pkg/registries" "github.com/containers/libpod/pkg/util" "github.com/containers/storage" - "github.com/containers/storage/pkg/reexec" "github.com/opencontainers/go-digest" imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1" ociv1 "github.com/opencontainers/image-spec/specs-go/v1" @@ -85,9 +84,6 @@ func NewImageRuntimeFromStore(store storage.Store) *Runtime { // NewImageRuntimeFromOptions creates an Image Runtime including the store given // store options func NewImageRuntimeFromOptions(options storage.StoreOptions) (*Runtime, error) { - if reexec.Init() { - return nil, errors.Errorf("unable to reexec") - } store, err := setStore(options) if err != nil { return nil, err |