Merge pull request #544 from lifupan/master

virtcontainers: fix the issue of cleanup the vm's path
This commit is contained in:
James O. D. Hunt 2018-08-02 11:29:50 +01:00 committed by GitHub
commit 04fa125e95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ func (q *qemu) stopSandbox() error {
return err
}
err = os.RemoveAll(RunVMStoragePath + q.id)
err = os.RemoveAll(filepath.Join(RunVMStoragePath, q.id))
if err != nil {
q.Logger().WithError(err).Error("Fail to clean up vm directory")
}