Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed May 24, 2019
1 parent f87a2c0 commit 561a647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/thanos/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func registerRule(m map[string]setupFunc, app *kingpin.Application, name string)
fileSD = file.NewDiscovery(conf, logger)
}

if fileSD == nil {
if fileSD == nil && len(*queries) == 0 {
return errors.Errorf("No --query parameter was given.")
}

Expand Down Expand Up @@ -555,7 +555,7 @@ func runRule(
return err
}

var uploads = true
uploads := true
if len(confContentYaml) == 0 {
level.Info(logger).Log("msg", "No supported bucket was configured, uploads will be disabled")
uploads = false
Expand Down

0 comments on commit 561a647

Please sign in to comment.