mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 09:57:26 +03:00
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:
parent
1f920b9f02
commit
615e34a73d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user