Skip to content

Commit

Permalink
akamai-purger: Check the correct pointer for manual mode configuratio…
Browse files Browse the repository at this point in the history
…n 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 #7176
  • Loading branch information
pgporada authored Dec 4, 2023
1 parent 6445feb commit 55e512c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/akamai-purger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 55e512c

Please sign in to comment.