Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Log correct --registry-require flag (remove D from end) (#2256)
Browse files Browse the repository at this point in the history
Log correct `--registry-require` flag (remove D from end)
  • Loading branch information
hiddeco authored and squaremo committed Jul 25, 2019
1 parent 77250ef commit ed85eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/fluxd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,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)
}
}
Expand Down Expand Up @@ -449,7 +449,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)
}
}
Expand Down

0 comments on commit ed85eca

Please sign in to comment.