aboutsummaryrefslogtreecommitdiffhomepage
path: root/provider.go
diff options
context:
space:
mode:
authorstack72 <public@paulstack.co.uk>2015-10-08 15:36:11 +0100
committerstack72 <public@paulstack.co.uk>2015-11-27 15:03:13 +0000
commit4eeeab6482a659f2a3c4077a38bb3c83967666ac (patch)
treec95f8cce5f85acca80faac104130dd3e55dc83f8 /provider.go
parent32574941630dadbe86b887c174e1b7bcfd9580c1 (diff)
downloadterraform-provider-statuscake-4eeeab6482a659f2a3c4077a38bb3c83967666ac.tar.gz
terraform-provider-statuscake-4eeeab6482a659f2a3c4077a38bb3c83967666ac.tar.zst
terraform-provider-statuscake-4eeeab6482a659f2a3c4077a38bb3c83967666ac.zip
Added some acceptance tests for the statuscake provider
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/provider.go b/provider.go
index 7d96e0e..abca376 100644
--- a/provider.go
+++ b/provider.go
@@ -1,7 +1,7 @@
1package statuscake 1package statuscake
2 2
3import ( 3import (
4 wtf "github.com/DreamItGetIT/statuscake" 4 "github.com/DreamItGetIT/statuscake"
5 "github.com/hashicorp/terraform/helper/schema" 5 "github.com/hashicorp/terraform/helper/schema"
6 "github.com/hashicorp/terraform/terraform" 6 "github.com/hashicorp/terraform/terraform"
7) 7)
@@ -32,9 +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 auth := wtf.Auth{ 35 auth := statuscake.Auth{
36 Username: d.Get("username").(string), 36 Username: d.Get("username").(string),
37 Apikey: d.Get("apikey").(string), 37 Apikey: d.Get("apikey").(string),
38 } 38 }
39 return wtf.New(auth) 39 return statuscake.New(auth)
40} 40}