From 061c3424743ceb54425ae28be685e5a9c43ea147 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 8 Mar 2022 12:02:50 +0100 Subject: cli: connection: check for warnings after "modify" Run the same checks after "nmcli c modify" as we do for "nmcli c add". That is -- warn if the resulting connection has a connection ID collision. --- src/nmcli/connections.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nmcli/connections.c b/src/nmcli/connections.c index fdfac3abaf..221761da22 100644 --- a/src/nmcli/connections.c +++ b/src/nmcli/connections.c @@ -8897,6 +8897,8 @@ modify_connection_cb(GObject *connection, GAsyncResult *result, gpointer user_da error->message); nmc->return_value = NMC_RESULT_ERROR_UNKNOWN; } else { + connection_warnings(nmc, NM_CONNECTION(connection)); + if (nmc->nmc_config.print_output == NMC_PRINT_PRETTY) { g_print(_("Connection '%s' (%s) successfully modified.\n"), nm_connection_get_id(NM_CONNECTION(connection)), -- cgit v1.2.1