From 5644b6ea402e73f25eeb18a31a3dcdafdeb104b6 Mon Sep 17 00:00:00 2001 From: Jiri Pinkava Date: Mon, 15 Jul 2019 16:32:52 +0200 Subject: [PATCH] Log correct `--registry-require` flag (remove D from end) --- cmd/fluxd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/fluxd/main.go b/cmd/fluxd/main.go index 81a29befc..25e07c2b0 100644 --- a/cmd/fluxd/main.go +++ b/cmd/fluxd/main.go @@ -288,7 +288,7 @@ func main() { possiblyRequired := stringset(RequireValues) for _, r := range *registryRequire { if !possiblyRequired.has(r) { - logger.Log("err", fmt.Sprintf("--registry-required value %q is not in possible values {%s}", r, strings.Join(RequireValues, ","))) + logger.Log("err", fmt.Sprintf("--registry-require value %q is not in possible values {%s}", r, strings.Join(RequireValues, ","))) os.Exit(1) } } @@ -454,7 +454,7 @@ func main() { awsPreflight, credsWithAWSAuth := registry.ImageCredsWithAWSAuth(imageCreds, log.With(logger, "component", "aws"), awsConf) if mandatoryRegistry.has(RequireECR) { if err := awsPreflight(); err != nil { - logger.Log("error", "AWS API required (due to --registry-required=ecr), but not available", "err", err) + logger.Log("error", "AWS API required (due to --registry-require=ecr), but not available", "err", err) os.Exit(1) } }