tools/qvm-device: list attach options
This commit is contained in:
parent
430ff342d4
commit
414be0945d
@ -99,10 +99,16 @@ def list_devices(args):
|
||||
if domain == dev.backend_domain:
|
||||
continue
|
||||
|
||||
if dev in domain.devices[args.devclass].assignments():
|
||||
for assignment in domain.devices[args.devclass].assignments():
|
||||
if dev != assignment:
|
||||
continue
|
||||
if assignment.options:
|
||||
result[dev].frontends.append('{!s} ({})'.format(
|
||||
domain, ', '.join('{}={}'.format(key, value)
|
||||
for key, value in assignment.options.items())))
|
||||
else:
|
||||
result[dev].frontends.append(str(domain))
|
||||
|
||||
|
||||
qubesadmin.tools.print_table(prepare_table(result.values()))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user