summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-11-06 14:51:40 +0100
committerThomas Haller <thaller@redhat.com>2015-11-06 14:52:11 +0100
commit6a82b4e2edb055d0b7195edacc78c193565495f0 (patch)
treeabaa91a7996d2c02263ca249c4d2ddf48a074ab1 /clients
parent95878673495474eb4d4190fdb6f2a17bafd212d0 (diff)
downloadNetworkManager-6a82b4e2edb055d0b7195edacc78c193565495f0.tar.gz
cli: fix `nmcli device set DEV managed true`
Fixes: 4dffbf8f6abe48a5677e5d702cb107f9946c824f
Diffstat (limited to 'clients')
-rw-r--r--clients/cli/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c
index 8c5fe20efd..5dce08c220 100644
--- a/clients/cli/devices.c
+++ b/clients/cli/devices.c
@@ -2022,7 +2022,7 @@ do_device_set (NmCli *nmc, int argc, char **argv)
if (values[DEV_SET_AUTOCONNECT].idx >= 0)
nm_device_set_autoconnect (device, values[DEV_SET_AUTOCONNECT].value);
if (values[DEV_SET_MANAGED].idx >= 0)
- nm_device_set_autoconnect (device, values[DEV_SET_MANAGED].value);
+ nm_device_set_managed (device, values[DEV_SET_MANAGED].value);
error:
quit ();