mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
libvirt-domain: fix the error reporting when use the localhost as target uri
Remove the extra %s in error message when call virReportInvalidArg(). Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
parent
b02d0c33b0
commit
50be3b44c5
@ -3303,7 +3303,7 @@ virDomainMigrateCheckNotLocal(const char *dconnuri)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
if (!tempuri->server || STRPREFIX(tempuri->server, "localhost")) {
|
if (!tempuri->server || STRPREFIX(tempuri->server, "localhost")) {
|
||||||
virReportInvalidArg(dconnuri, "%s",
|
virReportInvalidArg(dconnuri, "%s",
|
||||||
_("Attempt to migrate guest to the same host %s"));
|
_("Attempt to migrate guest to the same host"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user