From 347016b584b3399d8d8f4eb30fbc7b7b64386366 Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Thu, 20 Apr 2017 14:35:37 +0200 Subject: [PATCH] nmcli: fix access to memeber nmc->show_secret Cherry-picked commit from master which used the new nmc->nmc_config member not available in nm-1-8. We should use the nmc->show_secret member here. Fixes: d4c8a3fbf2bf7a2b67b606cc38562ea6a6d42a0c --- clients/cli/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 16fadfc962..a93dc15fc4 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -1836,7 +1836,7 @@ do_connections_show (NmCli *nmc, int argc, char **argv) /* Before printing the connections check if we have a "--show-secret" * option after the connection ids */ - if (!nmc->nmc_config.show_secrets && !nmc->complete) { + if (!nmc->show_secrets && !nmc->complete) { int argc_cp = argc; char **argv_cp = argv;