mirror of https://github.com/docker/docs.git
Removing error if vmdestroy is called without VirtualBox
This commit is contained in:
parent
9b5b70f562
commit
2c587445e9
|
@ -31,8 +31,8 @@ var VirtualBox = {
|
|||
return util.exec(['pkill', 'VirtualBox']);
|
||||
}).then(() => {
|
||||
return util.exec(['pkill', 'VBox']);
|
||||
}).catch(err => {
|
||||
|
||||
}).catch(() => {
|
||||
|
||||
});
|
||||
},
|
||||
vmstate: function (name) {
|
||||
|
@ -48,9 +48,6 @@ var VirtualBox = {
|
|||
},
|
||||
vmdestroy: function (name) {
|
||||
return Promise.coroutine(function* () {
|
||||
if (!this.installed()) {
|
||||
return Promise.reject('VirtualBox not installed.');
|
||||
}
|
||||
try {
|
||||
var state = yield this.vmstate(name);
|
||||
if (state === 'running') {
|
||||
|
|
Loading…
Reference in New Issue