Skip to content

Commit

Permalink
test magic
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy committed Oct 30, 2024
1 parent 3a9b76b commit fd50c3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/fleet/internal/cdn/cdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"context"
"errors"
"regexp"
"runtime"

"github.com/DataDog/datadog-agent/pkg/fleet/env"
)
Expand Down Expand Up @@ -40,6 +41,9 @@ type CDN interface {

// New creates a new CDN.
func New(env *env.Env, configDBPath string) (CDN, error) {
if runtime.GOOS == "windows" {
return newRegular(env, configDBPath)
}
if !env.RemotePolicies {
return newNoop()
}
Expand Down

0 comments on commit fd50c3f

Please sign in to comment.