Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louy committed May 31, 2018
1 parent 03a7395 commit 547a496
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions uptimerobot/resource_uptimerobot_status_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ func resourceStatusPage() *schema.Resource {
"dns_address": &schema.Schema{
Type: schema.TypeString,
Computed: true,
DefaultFunc: func() (interface{}, error) {
return "stats.uptimerobot.com", nil
},
},
"standard_url": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"custom_url": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
},
}
Expand Down Expand Up @@ -121,6 +126,8 @@ func resourceStatusPageCreate(d *schema.ResourceData, m interface{}) error {
} else {
d.Set("custom_url", nil)
}

d.Set("dns_address", "stats.uptimerobot.com")
return nil
}

Expand Down Expand Up @@ -155,6 +162,8 @@ func resourceStatusPageRead(d *schema.ResourceData, m interface{}) error {
d.Set("sort", intToString(statusPageSort, int(psp["sort"].(float64))))
d.Set("status", intToString(statusPageStatus, int(psp["status"].(float64))))

d.Set("dns_address", "stats.uptimerobot.com")

return nil
}

Expand Down

0 comments on commit 547a496

Please sign in to comment.