Skip to content

Commit

Permalink
hacky solutions removed read. Will fix system robot accounts resource
Browse files Browse the repository at this point in the history
  • Loading branch information
wrighbr committed Mar 10, 2021
1 parent 2b3e8ef commit 1f856ee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions provider/resource_robot_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

// var pathRobot string = "/projects"

func resourceRobotAccount() *schema.Resource {
return &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down Expand Up @@ -112,9 +110,7 @@ func resourceRobotAccountRead(d *schema.ResourceData, m interface{}) error {
return fmt.Errorf("Resource not found %s", d.Id())
}

d.Set("project_id", "/projects/"+strconv.Itoa(jsonData.ProjectID))
d.Set("robot_id", strconv.Itoa(jsonData.ID))
d.Set("name", strings.Replace(jsonData.Name, "robot$", "", -1))
d.Set("description", jsonData.Description)

return nil
Expand Down

0 comments on commit 1f856ee

Please sign in to comment.