diff options
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | statuscake/provider.go | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 0eabb81..e85a5f2 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -4,7 +4,7 @@ services: | |||
4 | - docker | 4 | - docker |
5 | language: go | 5 | language: go |
6 | go: | 6 | go: |
7 | - 1.8.1 | 7 | - "1.11.x" |
8 | 8 | ||
9 | install: | 9 | install: |
10 | # This script is used by the Travis build to install a cookie for | 10 | # This script is used by the Travis build to install a cookie for |
@@ -11,7 +11,7 @@ Requirements | |||
11 | ------------ | 11 | ------------ |
12 | 12 | ||
13 | - [Terraform](https://www.terraform.io/downloads.html) 0.10.x | 13 | - [Terraform](https://www.terraform.io/downloads.html) 0.10.x |
14 | - [Go](https://golang.org/doc/install) 1.8 (to build the provider plugin) | 14 | - [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin) |
15 | 15 | ||
16 | Building The Provider | 16 | Building The Provider |
17 | --------------------- | 17 | --------------------- |
@@ -37,7 +37,7 @@ Using the provider | |||
37 | Developing the Provider | 37 | Developing the Provider |
38 | --------------------------- | 38 | --------------------------- |
39 | 39 | ||
40 | If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. | 40 | If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. |
41 | 41 | ||
42 | To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. | 42 | To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. |
43 | 43 | ||
diff --git a/statuscake/provider.go b/statuscake/provider.go index abca376..93c691f 100644 --- a/statuscake/provider.go +++ b/statuscake/provider.go | |||
@@ -9,13 +9,13 @@ import ( | |||
9 | func Provider() terraform.ResourceProvider { | 9 | func Provider() terraform.ResourceProvider { |
10 | return &schema.Provider{ | 10 | return &schema.Provider{ |
11 | Schema: map[string]*schema.Schema{ | 11 | Schema: map[string]*schema.Schema{ |
12 | "username": &schema.Schema{ | 12 | "username": { |
13 | Type: schema.TypeString, | 13 | Type: schema.TypeString, |
14 | Required: true, | 14 | Required: true, |
15 | DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil), | 15 | DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil), |
16 | Description: "Username for StatusCake Account.", | 16 | Description: "Username for StatusCake Account.", |
17 | }, | 17 | }, |
18 | "apikey": &schema.Schema{ | 18 | "apikey": { |
19 | Type: schema.TypeString, | 19 | Type: schema.TypeString, |
20 | Required: true, | 20 | Required: true, |
21 | DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil), | 21 | DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil), |