diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-07-07 14:53:34 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-08-01 13:52:36 +0200 |
commit | 2895261c91de4378e639381b35daf999ec8e591c (patch) | |
tree | 611e574a69d40a2e18149da004734e29bf39d51d /clients/cli/settings.c | |
parent | 717db4fe014ecc80eb8bb86757f724448116a662 (diff) | |
download | NetworkManager-2895261c91de4378e639381b35daf999ec8e591c.tar.gz |
cli/connections: do connection completion in get_connection()
Start completing by the id if the filter type is not specified
Diffstat (limited to 'clients/cli/settings.c')
-rw-r--r-- | clients/cli/settings.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clients/cli/settings.c b/clients/cli/settings.c index 98d0c8b19d..feed51ce7e 100644 --- a/clients/cli/settings.c +++ b/clients/cli/settings.c @@ -3247,8 +3247,7 @@ nmc_property_connection_set_secondaries (NMSetting *setting, const char *prop, c continue; if (nm_utils_is_uuid (*iter)) { - con = nmc_find_connection (nm_cli.connections, - "uuid", *iter, NULL); + con = nmc_find_connection (nm_cli.connections, "uuid", *iter, NULL, FALSE); if (!con) g_print (_("Warning: %s is not an UUID of any existing connection profile\n"), *iter); else { @@ -3260,8 +3259,7 @@ nmc_property_connection_set_secondaries (NMSetting *setting, const char *prop, c } } } else { - con = nmc_find_connection (nm_cli.connections, - "id", *iter, NULL); + con = nmc_find_connection (nm_cli.connections, "id", *iter, NULL, FALSE); if (!con) { g_set_error (error, 1, 0, _("'%s' is not a name of any exiting profile"), *iter); g_strfreev (strv); |