@@ -67,11 +67,11 @@ func (r *Client) CheckSnapshotReady(vmRef ref.Ref, snapshot string) (ready bool,
6767}
6868
6969// Remove a VM snapshot.
70- func (r * Client ) RemoveSnapshot (vmRef ref.Ref , snapshot string , hosts util.HostsFunc , consolidate bool ) (err error ) {
70+ func (r * Client ) RemoveSnapshot (vmRef ref.Ref , snapshot string , hosts util.HostsFunc ) (err error ) {
7171 r .Log .V (1 ).Info ("RemoveSnapshot" ,
7272 "vmRef" , vmRef ,
7373 "snapshot" , snapshot )
74- err = r .removeSnapshot (vmRef , snapshot , false , hosts , consolidate )
74+ err = r .removeSnapshot (vmRef , snapshot , false , hosts )
7575 return
7676}
7777
@@ -371,7 +371,7 @@ func nullableHosts() (hosts map[string]*v1beta1.Host, err error) {
371371}
372372
373373// Remove a VM snapshot and optionally its children.
374- func (r * Client ) removeSnapshot (vmRef ref.Ref , snapshot string , children bool , hosts util.HostsFunc , consolidate bool ) (err error ) {
374+ func (r * Client ) removeSnapshot (vmRef ref.Ref , snapshot string , children bool , hosts util.HostsFunc ) (err error ) {
375375 r .Log .Info ("Removing snapshot" ,
376376 "vmRef" , vmRef ,
377377 "snapshot" , snapshot ,
@@ -381,7 +381,7 @@ func (r *Client) removeSnapshot(vmRef ref.Ref, snapshot string, children bool, h
381381 if err != nil {
382382 return
383383 }
384- _ , err = vm .RemoveSnapshot (context .TODO (), snapshot , children , & consolidate )
384+ _ , err = vm .RemoveSnapshot (context .TODO (), snapshot , children , nil )
385385 if err != nil {
386386 err = liberr .Wrap (err )
387387 return
0 commit comments