From c5d75dcdfac8750113698ec4f4c6a64144c519a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 9 May 2012 12:54:09 +0200 Subject: [PATCH] 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. --- cli/src/connections.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/connections.c b/cli/src/connections.c index d618c69c0b..29688fe3ef 100644 --- a/cli/src/connections.c +++ b/cli/src/connections.c @@ -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;