fix: fix volumes.Delete method call
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
This commit is contained in:
parent
cf8bfa56f0
commit
6c8421e802
|
@ -125,7 +125,7 @@ func (s *StepCreateVolume) Cleanup(state multistep.StateBag) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ui.Say(fmt.Sprintf("Deleting volume: %s ...", s.volumeID))
|
ui.Say(fmt.Sprintf("Deleting volume: %s ...", s.volumeID))
|
||||||
err = volumes.Delete(blockStorageClient, s.volumeID).ExtractErr()
|
err = volumes.Delete(blockStorageClient, s.volumeID, volumes.DeleteOpts{}).ExtractErr()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ui.Error(fmt.Sprintf(
|
ui.Error(fmt.Sprintf(
|
||||||
"Error cleaning up volume. Please delete the volume manually: %s", s.volumeID))
|
"Error cleaning up volume. Please delete the volume manually: %s", s.volumeID))
|
||||||
|
|
Loading…
Reference in New Issue