~rvb/gwacl/list-endpoints

« back to all changes in this revision

Viewing changes to example/management/run.go

  • Committer: Tarmac
  • Author(s): Raphael Badin
  • Date: 2013-07-18 10:51:19 UTC
  • mfrom: (189.2.1 check-err)
  • Revision ID: tarmac-20130718105119-az836hrz6man747z
[r=julian-edwards][bug=][author=rvb] Add check for error in example script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
 
102
102
    defer func() {
103
103
        fmt.Printf("Deleting affinity group %s\n", affinityGroupName)
104
 
        api.DeleteAffinityGroup(&gwacl.DeleteAffinityGroupRequest{
 
104
        err := api.DeleteAffinityGroup(&gwacl.DeleteAffinityGroupRequest{
105
105
            Name: affinityGroupName})
 
106
        checkError(err)
106
107
        fmt.Printf("Done deleting affinity group %s\n", affinityGroupName)
107
108
    }()
108
109