1
0
mirror of https://github.com/gryf/boxpy.git synced 2026-02-02 14:15:49 +01:00

1 Commits
1.3 ... 1.3.1

Author SHA1 Message Date
0093e32b74 Fix for rebuild command and calling vmdestroy function. 2021-11-04 09:26:38 +01:00

7
box.py
View File

@@ -1227,7 +1227,12 @@ def vmcreate(args, conf=None):
def vmdestroy(args):
for name in args.name:
if isinstance(args.name, list):
vm_names = args.name
else:
vm_names = [args.name]
for name in vm_names:
vbox = VBoxManage(name)
if not vbox.get_vm_info():
LOG.fatal(f'Cannot remove VM "{name}" - it doesn\'t exists.')