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: d4c8a3fbf2
This commit is contained in:
Francesco Giudici 2017-04-20 14:35:37 +02:00
parent 030d77d3e1
commit 347016b584

View file

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