aboutsummaryrefslogtreecommitdiffhomepage
path: root/provider.go
diff options
context:
space:
mode:
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/provider.go b/provider.go
index 7402e80..abca376 100644
--- a/provider.go
+++ b/provider.go
@@ -32,8 +32,9 @@ func Provider() terraform.ResourceProvider {
32} 32}
33 33
34func providerConfigure(d *schema.ResourceData) (interface{}, error) { 34func providerConfigure(d *schema.ResourceData) (interface{}, error) {
35 username := d.Get("username").(string) 35 auth := statuscake.Auth{
36 apiKey := d.Get("apikey").(string) 36 Username: d.Get("username").(string),
37 37 Apikey: d.Get("apikey").(string),
38 return statuscake.New(apiKey, username), nil 38 }
39 return statuscake.New(auth)
39} 40}