]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: block: Remove misleading part of comment in qemuBlockStorageSourceBuildJSONSock...
authorPeter Krempa <pkrempa@redhat.com>
Mon, 12 Feb 2018 14:50:12 +0000 (15:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 14 Feb 2018 12:21:44 +0000 (13:21 +0100)
The array indexes are formatted if the JSON->commandline translator is
translating an array type. It does not at all depend on this function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_block.c

index 585f0255eea99ed9e07355bb736ddf44d29e2ced..8b71679118361efaa02a054e77fca3639a0b286e 100644 (file)
@@ -472,11 +472,6 @@ qemuBlockStorageSourceGetURI(virStorageSourcePtr src)
  * Formats @hosts into a json object conforming to the 'SocketAddress' type
  * in qemu.
  *
- * This function can be used when only 1 src->nhosts is expected in order
- * to build a command without the array indices after "server.". That is
- * to see "server.type", "server.host", and "server.port" instead of
- * "server.#.type", "server.#.host", and "server.#.port".
- *
  * Returns a virJSONValuePtr for a single server.
  */
 static virJSONValuePtr