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:
Jiří Klimeš
2012-05-09 12:54:09 +02:00
parent 191da673a8
commit c5d75dcdfa

View File

@@ -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;