tools/qvm-device: list attach options
This commit is contained in:
parent
430ff342d4
commit
414be0945d
@ -99,9 +99,15 @@ def list_devices(args):
|
|||||||
if domain == dev.backend_domain:
|
if domain == dev.backend_domain:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if dev in domain.devices[args.devclass].assignments():
|
for assignment in domain.devices[args.devclass].assignments():
|
||||||
result[dev].frontends.append(str(domain))
|
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()))
|
qubesadmin.tools.print_table(prepare_table(result.values()))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user