From 615e34a73d86049181762484ee45f8b2b923a163 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 20 Jul 2017 12:50:18 +0200 Subject: [PATCH] qemu: command: Remove condition to use default sheepdog port Since we now set the default ports when parsing disks, it's not necessary to have default port numbers encoded in the command line generator. --- src/qemu/qemu_command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index d7f101a9e7..a85eb2ede3 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -938,8 +938,7 @@ qemuBuildNetworkDriveStr(virStorageSourcePtr src, goto cleanup; } else if (src->nhosts == 1) { if (virAsprintf(&ret, "sheepdog:%s:%s:%s", - src->hosts->name, - src->hosts->port ? src->hosts->port : "7000", + src->hosts->name, src->hosts->port, src->path) < 0) goto cleanup; } else {