Skip to content

Commit 0775568

Browse files
author
Scott Weiss
committed
don't delete the whole tmp dir when cleaning up tmp data vol
fixes solo-io#83 Signed-off-by: Scott Weiss <[email protected]>
1 parent 03a1aef commit 0775568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/providers/virtualbox/deploy_instance_listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (p *VirtualboxProvider) runInstanceListener(image *types.Image) (err error)
7676
if err != nil {
7777
return errors.New("failed creating raw data volume", err)
7878
}
79-
defer os.RemoveAll(filepath.Dir(imagePath))
79+
defer os.RemoveAll(imagePath)
8080
createVolumeParams := types.CreateVolumeParams{
8181
Name: instanceListenerData,
8282
ImagePath: imagePath,

0 commit comments

Comments
 (0)