diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-08-09 20:37:32 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-08-10 10:10:51 +0200 |
commit | c955d91d4bbd1aec0e00be8955ac24aecf64182f (patch) | |
tree | 0c3cc5f34845c634b83470497b9f5918af2c6dde /clients/cli | |
parent | cf02b9c5df7ca4ea237d6c92bd975d8f3f98a4a1 (diff) | |
download | NetworkManager-c955d91d4bbd1aec0e00be8955ac24aecf64182f.tar.gz |
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: 31aa2cfe29beb1bb7371ff36dbbd8baebeeaa06e
https://bugzilla.gnome.org/show_bug.cgi?id=796834
Diffstat (limited to 'clients/cli')
-rw-r--r-- | clients/cli/devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 3145a5ed45..ca575c335c 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -1698,7 +1698,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 NMCResultCode |