Skip to content

Commit 55dbba9

Browse files
committed
q-dev: port
1 parent 30d7547 commit 55dbba9

File tree

7 files changed

+144
-137
lines changed

7 files changed

+144
-137
lines changed

doc/manpages/qvm-device.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ Show info about the device with *DEVICE_ID* from *BACKEND_DOMAIN* attached to th
137137

138138
aliases: i
139139

140-
Device classes
141-
==============
140+
Port classes
141+
============
142142

143143
block
144144
^^^^^

qubesadmin/backup/restore.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
from qubesadmin.backup import BackupVM
5151
from qubesadmin.backup.core2 import Core2Qubes
5252
from qubesadmin.backup.core3 import Core3Qubes
53-
from qubesadmin.device_protocol import DeviceAssignment
53+
from qubesadmin.device_protocol import DeviceAssignment, Port
5454
from qubesadmin.exc import QubesException
5555
from qubesadmin.utils import size_to_human
5656

@@ -2094,9 +2094,11 @@ def _restore_vms_metadata(self, restore_info):
20942094
else:
20952095
required = False
20962096
assignment = DeviceAssignment(
2097-
backend_domain=self.app.domains[backend_domain],
2098-
ident=ident,
2099-
devclass=bus,
2097+
Port(
2098+
backend_domain=self.app.domains[backend_domain],
2099+
ident=ident,
2100+
devclass=bus,
2101+
),
21002102
options=options,
21012103
attach_automatically=True,
21022104
required=required,

0 commit comments

Comments
 (0)