diff --git a/Makefile b/Makefile index 79cedf6..bab4b6b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ TEST?=$$(go list ./... | grep -v 'vendor') -HOSTNAME=github.com +HOSTNAME=registry.terraform.io NAMESPACE=dockstudios NAME=jmon BINARY=terraform-provider-${NAME} diff --git a/jmon/resource_check.go b/jmon/resource_check.go index a023fee..3f5f86c 100644 --- a/jmon/resource_check.go +++ b/jmon/resource_check.go @@ -46,7 +46,7 @@ func resourceCheck() *schema.Resource { Type: schema.TypeString, Optional: true, ForceNew: true, - Computed: true, + Default: "default", }, "steps": &schema.Schema{ Type: schema.TypeString, @@ -60,22 +60,22 @@ func resourceCheck() *schema.Resource { "interval": &schema.Schema{ Type: schema.TypeInt, Optional: true, - Computed: true, + Default: 0, }, "timeout": &schema.Schema{ Type: schema.TypeInt, Optional: true, - Computed: true, + Default: 0, }, "client": &schema.Schema{ Type: schema.TypeString, Optional: true, - Computed: true, + Default: nil, }, "enable": &schema.Schema{ Type: schema.TypeBool, Optional: true, - Computed: true, + Default: true, }, "attributes": &schema.Schema{ Type: schema.TypeMap, @@ -287,7 +287,6 @@ func resourceCheckRead(ctx context.Context, d *schema.ResourceData, m interface{ ymlErr := yaml.Unmarshal([]byte(d.Get("steps").(string)), ¤tSteps) if ymlErr == nil { if reflect.DeepEqual(currentSteps, check.Steps) { - log.Printf("!!!!!!!!!!!!!!!!!!!!!!!!!! STEPS ARE EQUALS") updateSteps = false } }