mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: fix error messages in iface-bridge
The error messages did not correspond to the attributes they printed.
This commit is contained in:
parent
7475ee0f75
commit
924a6c7f6a
@ -813,13 +813,13 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
|
|||||||
*/
|
*/
|
||||||
if (!xmlSetProp(if_node, BAD_CAST "type", BAD_CAST if_type)) {
|
if (!xmlSetProp(if_node, BAD_CAST "type", BAD_CAST if_type)) {
|
||||||
vshError(ctl, _("Failed to set new slave interface type to '%s' in xml document"),
|
vshError(ctl, _("Failed to set new slave interface type to '%s' in xml document"),
|
||||||
if_name);
|
if_type);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!xmlSetProp(if_node, BAD_CAST "name", BAD_CAST if_name)) {
|
if (!xmlSetProp(if_node, BAD_CAST "name", BAD_CAST if_name)) {
|
||||||
vshError(ctl, _("Failed to set new slave interface name to '%s' in xml document"),
|
vshError(ctl, _("Failed to set new slave interface name to '%s' in xml document"),
|
||||||
br_name);
|
if_name);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user