mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-25 16:40:40 +02:00
cli: remove assertion in nmc_device_state_to_color()
nmcli should not fail when the state device state is > ACTIVATED. Just return an unknown color code like we used to do, and like we do for connections. Fixes:31aa2cfe29https://bugzilla.gnome.org/show_bug.cgi?id=796834 (cherry picked from commitc955d91d4b)
This commit is contained in:
parent
adc0849895
commit
5b31dfb1a5
1 changed files with 1 additions and 1 deletions
|
|
@ -1470,7 +1470,7 @@ nmc_device_state_to_color (NMDeviceState state)
|
|||
else if (state == NM_DEVICE_STATE_ACTIVATED)
|
||||
return NM_META_COLOR_DEVICE_ACTIVATED;
|
||||
|
||||
g_return_val_if_reached (NM_META_COLOR_DEVICE_UNKNOWN);
|
||||
return NM_META_COLOR_DEVICE_UNKNOWN;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue