Skip to content

Commit

Permalink
Update doc.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dstdfx committed Feb 4, 2018
1 parent 1aeca0f commit ad333ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions openstack/compute/v2/extensions/aggregates/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,18 @@ Example of Add Host
}
fmt.Printf("%+v\n", aggregate)
Example of Remove Host
aggregateID := 22
opts := aggregates.RemoveHostOpts{
Host: "newhost-cmp1"
}
aggregate, err := aggregates.RemoveHost(computeClient, aggregateID, opts).Extract()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", aggregate)
*/
package aggregates

0 comments on commit ad333ba

Please sign in to comment.