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.
This commit is contained in:
Peter Krempa 2017-07-20 12:50:18 +02:00
parent 1f920b9f02
commit 615e34a73d

View File

@ -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 {