summaryrefslogtreecommitdiff
path: root/clients/cli/general.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-06-10 15:27:59 +0200
committerThomas Haller <thaller@redhat.com>2020-06-10 15:30:38 +0200
commit9959bc58de5c331e2ef29034d03c3c81bda12a52 (patch)
tree15004dd4a2bcaf9111c7aa1d6e290f49d625a762 /clients/cli/general.c
parent1573ca755b248b6f50b0882f27ca2d1c88a39443 (diff)
downloadNetworkManager-th/mark-external-connection.tar.gz
cli: show differnt text for state of externally connected devicesth/mark-external-connection
Diffstat (limited to 'clients/cli/general.c')
-rw-r--r--clients/cli/general.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/clients/cli/general.c b/clients/cli/general.c
index 550ccb14d0..a771e1d58f 100644
--- a/clients/cli/general.c
+++ b/clients/cli/general.c
@@ -1426,25 +1426,23 @@ nmc_command_func_overview (const NMCCommand *cmd, NmCli *nmc, int argc, const ch
devices = nmc_get_devices_sorted (nmc->client);
for (i = 0; devices[i]; i++) {
NMDevice *device = devices[i];
- NMDeviceState state;
ac = nm_device_get_active_connection (device);
- state = nm_device_get_state (device);
color = nmc_device_state_to_color (device);
if (ac) {
/* TRANSLATORS: prints header line for activated device in plain `nmcli` overview output as
* "<interface-name>: <device-state> to <connection-id>" */
tmp = nmc_colorize (&nmc->nmc_config, color, C_("nmcli-overview", "%s: %s to %s"),
nm_device_get_iface (device),
- gettext (nmc_device_state_to_string (state)),
+ gettext (nmc_device_state_to_string_with_external (device)),
nm_active_connection_get_id (ac));
} else {
/* TRANSLATORS: prints header line for not active device in plain `nmcli` overview output as
* "<interface-name>: <device-state>" */
tmp = nmc_colorize (&nmc->nmc_config, color, C_("nmcli-overview", "%s: %s"),
nm_device_get_iface (device),
- gettext (nmc_device_state_to_string (state)));
+ gettext (nmc_device_state_to_string_with_external (device)));
}
g_print ("%s\n", tmp);
g_free (tmp);