scripts/rpc: change virtio print_dict to print_array

Changing for easier parsing in scripts and to be consistent
with construct_nvme_bdev and construct_malloc_bdev which
also can return multiple bdevs at once.

Change-Id: I9b0abf9925f4014a3b8c0147daeefe1bb6b95241
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/417662
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Karol Latecki 2018-07-03 11:32:23 +02:00 committed by Daniel Verkamp
parent ed8df49d2f
commit 8126104939

View File

@ -1396,7 +1396,7 @@ if __name__ == "__main__":
@call_cmd
def construct_virtio_dev(args):
print_dict(rpc.vhost.construct_virtio_dev(args.client,
print_array(rpc.vhost.construct_virtio_dev(args.client,
name=args.name,
trtype=args.trtype,
traddr=args.traddr,
@ -1420,7 +1420,7 @@ if __name__ == "__main__":
@call_cmd
def construct_virtio_user_scsi_bdev(args):
print_dict(rpc.vhost.construct_virtio_user_scsi_bdev(args.client,
print_array(rpc.vhost.construct_virtio_user_scsi_bdev(args.client,
path=args.path,
name=args.name,
vq_count=args.vq_count,
@ -1438,7 +1438,7 @@ if __name__ == "__main__":
@call_cmd
def construct_virtio_pci_scsi_bdev(args):
print_dict(rpc.vhost.construct_virtio_pci_scsi_bdev(args.client,
print_array(rpc.vhost.construct_virtio_pci_scsi_bdev(args.client,
pci_address=args.pci_address,
name=args.name))