diff options
author | stack72 <public@paulstack.co.uk> | 2015-10-01 23:09:13 +0100 |
---|---|---|
committer | stack72 <public@paulstack.co.uk> | 2015-11-27 15:03:13 +0000 |
commit | b8f05dfc572fcdd53e58e0a1e3851ccc4db8f17e (patch) | |
tree | 4f16c88b4d948611bd150b6f7152e2a409598a61 /provider.go | |
parent | 478e133852c1c49f98c0388920142dc507479487 (diff) | |
download | terraform-provider-statuscake-b8f05dfc572fcdd53e58e0a1e3851ccc4db8f17e.tar.gz terraform-provider-statuscake-b8f05dfc572fcdd53e58e0a1e3851ccc4db8f17e.tar.zst terraform-provider-statuscake-b8f05dfc572fcdd53e58e0a1e3851ccc4db8f17e.zip |
Using the latest version of the statuscake client
Diffstat (limited to 'provider.go')
-rw-r--r-- | provider.go | 9 |
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 | ||
34 | func providerConfigure(d *schema.ResourceData) (interface{}, error) { | 34 | func 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 | } |