Skip to content

Commit

Permalink
fix: use enterprise token from env as fallback (#2667)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandumlg authored and atzoum committed Nov 11, 2022
1 parent 17be4fa commit 2d8f4ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration_test/docker_test/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func setupMainFlow(svcCtx context.Context, t *testing.T) <-chan struct{} {

svcDone := make(chan struct{})
go func() {
r := runner.New(runner.ReleaseInfo{})
r := runner.New(runner.ReleaseInfo{EnterpriseToken: os.Getenv("ENTERPRISE_TOKEN")})
_ = r.Run(svcCtx, []string{"docker-test-rudder-server"})
close(svcDone)
}()
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

_ "go.uber.org/automaxprocs"

"github.com/rudderlabs/rudder-server/config"
"github.com/rudderlabs/rudder-server/runner"
)

Expand All @@ -27,7 +28,7 @@ func main() {
BuildDate: buildDate,
BuiltBy: builtBy,
GitURL: gitURL,
EnterpriseToken: enterpriseToken,
EnterpriseToken: config.GetString("ENTERPRISE_TOKEN", enterpriseToken),
})
exitCode := r.Run(ctx, os.Args)
cancel()
Expand Down

0 comments on commit 2d8f4ba

Please sign in to comment.