mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 16:50:16 +01:00
cli: fix output of iface in overview output (rh#1460219)
https://bugzilla.redhat.com/show_bug.cgi?id=1460219
This commit is contained in:
commit
58c8140acb
1 changed files with 4 additions and 4 deletions
|
|
@ -1194,10 +1194,10 @@ device_overview (NmCli *nmc, NMDevice *device)
|
|||
else
|
||||
g_string_append_printf (outbuf, "%s, ", _("hw"));
|
||||
|
||||
if ( nm_device_get_ip_iface (device)
|
||||
&& g_strcmp0 (nm_device_get_ip_iface (device), nm_device_get_iface (device))
|
||||
&& g_strcmp0 (nm_device_get_ip_iface (device), ""))
|
||||
g_string_append_printf (outbuf, "%s %s,", _("iface"), nm_device_get_ip_iface (device));
|
||||
if (!NM_IN_STRSET (nm_device_get_ip_iface (device),
|
||||
NULL,
|
||||
nm_device_get_iface (device)))
|
||||
g_string_append_printf (outbuf, "%s %s, ", _("iface"), nm_device_get_ip_iface (device));
|
||||
|
||||
if (nm_device_get_physical_port_id (device))
|
||||
g_string_append_printf (outbuf, "%s %s, ", _("port"), nm_device_get_physical_port_id (device));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue