diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2022-03-08 12:02:50 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2022-03-13 18:23:44 +0100 |
commit | 061c3424743ceb54425ae28be685e5a9c43ea147 (patch) | |
tree | fa4a8f3938c03c6709b89dbc501d5d55baf86541 | |
parent | b3f79ac3661532d105442937c18957eab0cad76d (diff) | |
download | NetworkManager-061c3424743ceb54425ae28be685e5a9c43ea147.tar.gz |
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.
-rw-r--r-- | src/nmcli/connections.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)), |