Skip to content

Commit

Permalink
Merge pull request #185 from niuzhenguo/cce-server-id
Browse files Browse the repository at this point in the history
Add server_id to CCE node
  • Loading branch information
niuzhenguo authored Aug 19, 2019
2 parents 75d7c30 + d933ce5 commit 2e464f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions huaweicloud/resource_huaweicloud_cce_node_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ func resourceCCENodeV3() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"server_id": {
Type: schema.TypeString,
Computed: true,
},
},
}
}
Expand Down Expand Up @@ -415,6 +419,7 @@ func resourceCCENodeV3Read(d *schema.ResourceData, meta interface{}) error {
d.Set("region", GetRegion(d, config))
d.Set("private_ip", s.Status.PrivateIP)
d.Set("public_ip", s.Status.PublicIP)
d.Set("server_id", s.Status.ServerID)

return nil
}
Expand Down

0 comments on commit 2e464f0

Please sign in to comment.