summaryrefslogtreecommitdiff
path: root/pkg/signal/signal_common.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-24 14:24:46 -0400
committerGitHub <noreply@github.com>2022-05-24 14:24:46 -0400
commit0f5c06dac58645943469c63999931c165dba9031 (patch)
tree4747c6c6662921171c3bd8a2eef818ee8e0c4cab /pkg/signal/signal_common.go
parenteea7491d6b02893766b806775bf00c992a824fd2 (diff)
parent70f147d0190e566d68412430c47df9bc00ddd418 (diff)
downloadpodman-0f5c06dac58645943469c63999931c165dba9031.tar.gz
podman-0f5c06dac58645943469c63999931c165dba9031.tar.bz2
podman-0f5c06dac58645943469c63999931c165dba9031.zip
Merge pull request #14330 from Luap99/completion3
cmd/podman/common/completion.go: fix FIXMEs
Diffstat (limited to 'pkg/signal/signal_common.go')
-rw-r--r--pkg/signal/signal_common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/signal/signal_common.go b/pkg/signal/signal_common.go
index 5ea67843a..fe5a76dae 100644
--- a/pkg/signal/signal_common.go
+++ b/pkg/signal/signal_common.go
@@ -17,7 +17,7 @@ func ParseSignal(rawSignal string) (syscall.Signal, error) {
}
return syscall.Signal(s), nil
}
- sig, ok := signalMap[strings.TrimPrefix(strings.ToUpper(rawSignal), "SIG")]
+ sig, ok := SignalMap[strings.TrimPrefix(strings.ToUpper(rawSignal), "SIG")]
if !ok {
return -1, fmt.Errorf("invalid signal: %s", rawSignal)
}
@@ -32,7 +32,7 @@ func ParseSignalNameOrNumber(rawSignal string) (syscall.Signal, error) {
if err == nil {
return s, nil
}
- for k, v := range signalMap {
+ for k, v := range SignalMap {
if k == strings.ToUpper(basename) {
return v, nil
}