Fixed missing import
Fixed missing import in boot-from-cdrom tool. fixes QubesOS/qubes-issues#3421
This commit is contained in:
parent
a84c5aba65
commit
839696f6f9
@ -23,6 +23,7 @@ from . import utils
|
||||
from . import ui_bootfromdevice # pylint: disable=no-name-in-module
|
||||
from PyQt4 import QtGui, QtCore # pylint: disable=import-error
|
||||
from qubesadmin import tools
|
||||
from qubesadmin.tools import qvm_start
|
||||
|
||||
|
||||
class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog, QtGui.QDialog):
|
||||
@ -45,7 +46,6 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog, QtGui.QDialog):
|
||||
# populate buttons and such
|
||||
self.__init_buttons__()
|
||||
|
||||
|
||||
def reject(self):
|
||||
self.done(0)
|
||||
|
||||
@ -62,7 +62,7 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog, QtGui.QDialog):
|
||||
self.tr("ERROR!"),
|
||||
self.tr("No file or block device selected; please select one."))
|
||||
return
|
||||
tools.qvm_start.main(['--cdrom', cdrom_location, self.vm.name])
|
||||
qvm_start.main(['--cdrom', cdrom_location, self.vm.name])
|
||||
|
||||
def __init_buttons__(self):
|
||||
self.fileVM.setEnabled(False)
|
||||
@ -112,6 +112,7 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog, QtGui.QDialog):
|
||||
|
||||
parser = tools.QubesArgumentParser(vmname_nargs=1)
|
||||
|
||||
|
||||
def main(args=None):
|
||||
args = parser.parse_args(args)
|
||||
vm = args.domains.pop()
|
||||
|
Loading…
Reference in New Issue
Block a user