cli: fix 'nm -nocheck con up'
When '-nocheck' option was used, NMClient object was created later in the operation process. This caused that the callback in nm_client_activate_connection() was not called. It's fixed by creating NMClient early.
This commit is contained in:
@@ -2030,6 +2030,9 @@ do_connections (NmCli *nmc, int argc, char **argv)
|
||||
if (!nmc_versions_match (nmc))
|
||||
return nmc->return_value;
|
||||
|
||||
/* Get NMClient object early */
|
||||
nmc->get_client (nmc);
|
||||
|
||||
nmc->should_wait = TRUE;
|
||||
|
||||
args_info.nmc = nmc;
|
||||
|
Reference in New Issue
Block a user