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.
This commit is contained in:
Lubomir Rintel 2022-03-08 12:02:50 +01:00
parent b3f79ac366
commit 061c342474

View file

@ -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)),