diff options
Diffstat (limited to 'src/VBox/Frontends/VBoxShell/vboxshell.py')
-rwxr-xr-x | src/VBox/Frontends/VBoxShell/vboxshell.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/VBox/Frontends/VBoxShell/vboxshell.py b/src/VBox/Frontends/VBoxShell/vboxshell.py index 416330d4c..f1a658341 100755 --- a/src/VBox/Frontends/VBoxShell/vboxshell.py +++ b/src/VBox/Frontends/VBoxShell/vboxshell.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (C) 2009-2010 Oracle Corporation +# Copyright (C) 2009-2011 Oracle Corporation # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; @@ -207,10 +207,10 @@ def colSize(ctx,m): def colSizeM(ctx,m): return colored(str(m)+'M', 'red') -def createVm(ctx,name,kind,base): +def createVm(ctx,name,kind): mgr = ctx['mgr'] vb = ctx['vb'] - mach = vb.createMachine(name, kind, base, "", False) + mach = vb.createMachine("", name, kind, "", False) mach.saveSettings() print "created machine with UUID",mach.id vb.registerMachine(mach) @@ -1033,21 +1033,17 @@ def startCmd(ctx, args): return 0 def createVmCmd(ctx, args): - if (len(args) < 3 or len(args) > 4): - print "usage: createvm name ostype <basefolder>" + if (len(args) != 3): + print "usage: createvm name ostype" return 0 name = args[1] oskind = args[2] - if len(args) == 4: - base = args[3] - else: - base = '' try: ctx['vb'].getGuestOSType(oskind) except Exception, e: print 'Unknown OS type:',oskind return 0 - createVm(ctx, name, oskind, base) + createVm(ctx, name, oskind) return 0 def ginfoCmd(ctx,args): |