Skip to content

Commit b244545

Browse files
author
anon
committed
type-hint device_protocol.py
1 parent 455ce7e commit b244545

3 files changed

Lines changed: 145 additions & 138 deletions

File tree

qubesadmin/backup/core3.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828

2929
import qubesadmin.backup
3030
import qubesadmin.firewall
31-
from qubesadmin import device_protocol
31+
from qubesadmin import utils
3232
from qubesadmin.vm import QubesVM
3333

3434

35-
36-
3735
class Core3VM(qubesadmin.backup.BackupVM):
3836
'''VM object'''
3937
@property
@@ -138,7 +136,7 @@ def import_core3_vm(self, element: _Element) -> None:
138136
for opt_node in node.findall('./option'):
139137
opt_name = opt_node.get('name')
140138
options[opt_name] = opt_node.text
141-
options['required'] = device_protocol.qbool(
139+
options['required'] = utils.qbool(
142140
node.get('required', 'yes'))
143141
vm.devices[bus_name][(backend_domain, port_id)] = options
144142

0 commit comments

Comments
 (0)