Skip to content

Commit

Permalink
fix(resource/node): update failure
Browse files Browse the repository at this point in the history
  • Loading branch information
IndexDoge authored and IndexDoge committed Mar 21, 2022
1 parent ca7950f commit baac88f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sspanel/resource_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ func resourceNodeRead(ctx context.Context, d *schema.ResourceData, meta interfac

node := responseJson["node"].(map[string]interface{})

d.SetId(node["id"].(string))
// Set Node Id
d.SetId(strconv.FormatInt(int64(node["id"].(float64)), 10))

d.Set("server", node["server"])
d.Set("name", node["name"])
d.Set("status", node["status"])
// TODO: impl read nodeInfo


return nil
}

Expand Down

0 comments on commit baac88f

Please sign in to comment.