aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-27 17:22:48 +0200
committerGitHub <noreply@github.com>2019-09-27 17:22:48 +0200
commita8c2b5dee4b746c2e83970603ff2645008d54b95 (patch)
tree90a26ad83414e451a136cc542a9eb07ec5975173 /contrib
parent92e1b661ff5fba140ba07dd2c956e5aede90e9b5 (diff)
parent65b20bd521302020ff229d455c60102e15a41b8a (diff)
downloadpodman-a8c2b5dee4b746c2e83970603ff2645008d54b95.tar.gz
podman-a8c2b5dee4b746c2e83970603ff2645008d54b95.tar.bz2
podman-a8c2b5dee4b746c2e83970603ff2645008d54b95.zip
Merge pull request #4127 from nalind/reexec-use
Correct use of reexec.Init()
Diffstat (limited to 'contrib')
-rw-r--r--contrib/perftest/main.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/perftest/main.go b/contrib/perftest/main.go
index f6c90914a..9b928a6b3 100644
--- a/contrib/perftest/main.go
+++ b/contrib/perftest/main.go
@@ -36,6 +36,9 @@ var helpMessage = `
`
func main() {
+ if reexec.Init() {
+ return
+ }
ctx := context.Background()
imageName := ""
@@ -51,10 +54,6 @@ func main() {
flag.Parse()
- if reexec.Init() {
- return
- }
-
switch strings.ToLower(*logLevel) {
case "error":
logrus.SetLevel(logrus.ErrorLevel)