Skip to content

Commit

Permalink
docs: link warning to both timeout config options (#6620)
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinleinweber committed May 6, 2024
1 parent 2482aa7 commit 38e2fbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cloud/aws/commands/run.go
Expand Up @@ -140,7 +140,7 @@ func Run(ctx context.Context, opt flag.Options) error {
var err error
defer func() {
if errors.Is(err, context.DeadlineExceeded) {
log.Warn("Increase --timeout value")
log.Warn("Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/")
}
}()

Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/artifact/run.go
Expand Up @@ -397,7 +397,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err

defer func() {
if errors.Is(err, context.DeadlineExceeded) {
log.Warn("Increase --timeout value")
log.Warn("Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/")
}
}()

Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/commands/run.go
Expand Up @@ -39,7 +39,7 @@ func Run(ctx context.Context, args []string, opts flag.Options) error {
defer func() {
cancel()
if errors.Is(err, context.DeadlineExceeded) {
log.WarnContext(ctx, "Increase --timeout value")
log.WarnContext(ctx, "Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/")
}
}()
opts.K8sVersion = cluster.GetClusterVersion()
Expand Down

0 comments on commit 38e2fbf

Please sign in to comment.