From 55e512cd37fde2ba0a2c1f16137e3dc7186f4415 Mon Sep 17 00:00:00 2001 From: Phil Porada Date: Mon, 4 Dec 2023 10:58:07 -0500 Subject: [PATCH] akamai-purger: Check the correct pointer for manual mode configuration file (#7177) When running in manual mode, the `configFile` variable will take the zero value of `""` while `manualConfigFile` will be provided on the CLI by the operator. A startup check incorrectly dereferences `configFile`; but correctly determines that it is the zero value `""`, outputs the help text, and exits never allowing manual mode to perform work. Fixes https://github.com/letsencrypt/boulder/issues/7176 --- cmd/akamai-purger/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/akamai-purger/main.go b/cmd/akamai-purger/main.go index f63c496bff6..3911deec9c1 100644 --- a/cmd/akamai-purger/main.go +++ b/cmd/akamai-purger/main.go @@ -257,7 +257,7 @@ func main() { if os.Args[1] == "manual" { manualMode = true _ = manualFlags.Parse(os.Args[2:]) - if *configFile == "" { + if *manualConfigFile == "" { manualFlags.Usage() os.Exit(1) }