Skip to content

Commit

Permalink
feat: add CHECKLY_API_SOURCE env variable (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nacho Anaya authored Mar 3, 2022
1 parent bbe75d5 commit 4173fe3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion checkly/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ func Provider() *schema.Provider {
client.SetAccountId(accountId)
}

client.SetChecklySource("TF")
checklyApiSource := os.Getenv("CHECKLY_API_SOURCE")
if checklyApiSource != "" {
client.SetChecklySource(checklyApiSource)
} else {
client.SetChecklySource("TF")
}

return client, nil
},
Expand Down

0 comments on commit 4173fe3

Please sign in to comment.