~abp998/gwacl/subscription

« back to all changes in this revision

Viewing changes to deletedisk.go

  • Committer: Julian Edwards
  • Date: 2013-07-16 05:48:26 UTC
  • mto: This revision was merged to the branch mainline in revision 186.
  • Revision ID: julian.edwards@canonical.com-20130716054826-40r33w729rc5utkk
fix poller struct to include flag

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
var deleteDiskInterval = 10 * time.Second
28
28
 
29
29
type diskDeletePoller struct {
30
 
    api      *ManagementAPI
31
 
    diskName string
 
30
    api        *ManagementAPI
 
31
    diskName   string
 
32
    deleteBlob bool
32
33
}
33
34
 
34
35
var _ poller = &diskDeletePoller{}
35
36
 
36
37
func (poller diskDeletePoller) poll() (*x509Response, error) {
37
 
    return nil, poller.api._DeleteDisk(poller.diskName)
 
38
    return nil, poller.api._DeleteDisk(poller.diskName, poller.deleteBlob)
38
39
}
39
40
 
40
41
// isInUseError returns whether or not the given string is of the "disk in use"