dom0/qvm-usb: use xs transaction

This commit is contained in:
Alexandre Bezroutchko 2012-10-10 16:55:38 +02:00
parent 0ef88be16d
commit c8cb9d00ce

View File

@ -423,7 +423,7 @@ def usb_list():
devices_list = {}
xs_trans = xs.transaction_start()
vm_list = xs.ls('', '/local/domain')
vm_list = xs.ls(xs_trans, '/local/domain')
for xid in vm_list:
vm_name = xs.read(xs_trans, '/local/domain/%s/name' % xid)