diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-12-27 14:59:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 14:59:37 +0100 |
commit | 269b17349631e260cafda2a607c0650299705394 (patch) | |
tree | c6e8cc44e144dd2be4dfe6e4f45ebb3312780f5d /cmd/podman/shared/create.go | |
parent | 55922e36707347d5db7182cda3d820e4bd85968d (diff) | |
parent | 40f55ca3fe06d2e5d0232c1f07911ea728fd1bc1 (diff) | |
download | podman-269b17349631e260cafda2a607c0650299705394.tar.gz podman-269b17349631e260cafda2a607c0650299705394.tar.bz2 podman-269b17349631e260cafda2a607c0650299705394.zip |
Merge pull request #4749 from edsantiago/parse_and_validate_signal
signal parsing - better input validation
Diffstat (limited to 'cmd/podman/shared/create.go')
-rw-r--r-- | cmd/podman/shared/create.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index c1c5db7cb..58cf56eea 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -24,7 +24,6 @@ import ( "github.com/containers/libpod/pkg/rootless" cc "github.com/containers/libpod/pkg/spec" "github.com/containers/libpod/pkg/util" - "github.com/docker/docker/pkg/signal" "github.com/docker/go-connections/nat" "github.com/docker/go-units" "github.com/opentracing/opentracing-go" @@ -464,7 +463,7 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod. signalString = c.String("stop-signal") } if signalString != "" { - stopSignal, err = signal.ParseSignal(signalString) + stopSignal, err = util.ParseSignal(signalString) if err != nil { return nil, err } @@ -624,7 +623,7 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod. } if systemd { if signalString == "" { - stopSignal, err = signal.ParseSignal("RTMIN+3") + stopSignal, err = util.ParseSignal("RTMIN+3") if err != nil { return nil, errors.Wrapf(err, "error parsing systemd signal") } |