Skip to content

Commit

Permalink
Merge pull request #119 from pippitt/fix_cf_zones_filter
Browse files Browse the repository at this point in the history
fix: CF_ZONES env var
  • Loading branch information
haad authored May 18, 2024
2 parents 7f97eee + 1e8953b commit 53e8c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
func getTargetZones() []string {
var zoneIDs []string

if len(viper.GetString("cfg_zones")) > 0 {
zoneIDs = strings.Split(viper.GetString("cfg_zones"), ",")
if len(viper.GetString("cf_zones")) > 0 {
zoneIDs = strings.Split(viper.GetString("cf_zones"), ",")
} else {
// deprecated
for _, e := range os.Environ() {
Expand Down
2 changes: 1 addition & 1 deletion run_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source .env
# Test if we have cloudflare api/key variables configured.

# Run cloudflare-exporter
nohup ./cloudflare_exporter --listen="${baseUrl}" >/tmp/cloudflare-expoter-test.out 2>&1 &
nohup ./cloudflare_exporter --listen="${baseUrl}" >/tmp/cloudflare-exporter-test.out 2>&1 &
export pid=$!
sleep 5

Expand Down

0 comments on commit 53e8c34

Please sign in to comment.