diff options
Diffstat (limited to 'clients/cli/agent.c')
-rw-r--r-- | clients/cli/agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/cli/agent.c b/clients/cli/agent.c index bc837c722f..e876d26227 100644 --- a/clients/cli/agent.c +++ b/clients/cli/agent.c @@ -148,7 +148,10 @@ do_agent_secret (NmCli *nmc, int argc, char **argv) nmc->should_wait++; nm_secret_agent_simple_enable (NM_SECRET_AGENT_SIMPLE (nmc->secret_agent), NULL); - g_signal_connect (nmc->secret_agent, "request-secrets", G_CALLBACK (secrets_requested), nmc); + g_signal_connect (nmc->secret_agent, + NM_SECRET_AGENT_SIMPLE_REQUEST_SECRETS, + G_CALLBACK (secrets_requested), + nmc); g_print (_("nmcli successfully registered as a NetworkManager's secret agent.\n")); } else { g_string_printf (nmc->return_text, _("Error: secret agent initialization failed")); |