Skip to content

Commit 4173fe3

Browse files
author
Nacho Anaya
authored
feat: add CHECKLY_API_SOURCE env variable (#120)
1 parent bbe75d5 commit 4173fe3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

checkly/provider.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ func Provider() *schema.Provider {
8484
client.SetAccountId(accountId)
8585
}
8686

87-
client.SetChecklySource("TF")
87+
checklyApiSource := os.Getenv("CHECKLY_API_SOURCE")
88+
if checklyApiSource != "" {
89+
client.SetChecklySource(checklyApiSource)
90+
} else {
91+
client.SetChecklySource("TF")
92+
}
8893

8994
return client, nil
9095
},

0 commit comments

Comments
 (0)