summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-04-09 12:35:26 +0200
committerThomas Haller <thaller@redhat.com>2021-04-09 12:37:21 +0200
commit6b64fac06d2f6e0d9fa530ebb1ab28d53a1c5d03 (patch)
tree1dedd070a170167674ce89f3aef77bb45efa5588
parent79903065e4d7610b45b521f35cd9bc839bbf293e (diff)
downloadNetworkManager-6b64fac06d2f6e0d9fa530ebb1ab28d53a1c5d03.tar.gz
libnm: fix nm_device_set_autoconnect() to use correct D-Bus property name
Fixes: ce0e898fb476 ('libnm: refactor caching of D-Bus objects in NMClient')
-rw-r--r--src/libnm-client-impl/nm-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnm-client-impl/nm-device.c b/src/libnm-client-impl/nm-device.c
index dd5f7d4889..ee0d88a0db 100644
--- a/src/libnm-client-impl/nm-device.c
+++ b/src/libnm-client-impl/nm-device.c
@@ -1394,7 +1394,7 @@ nm_device_get_autoconnect(NMDevice *device)
* Enables or disables automatic activation of the #NMDevice.
*
* Deprecated: 1.22: Use the async command nm_client_dbus_set_property() on
- * nm_object_get_path(), %NM_DBUS_INTERFACE_DEVICE to set "AutoConnect" property to a "(b)" value.
+ * nm_object_get_path(), %NM_DBUS_INTERFACE_DEVICE to set "Autoconnect" property to a "(b)" value.
* This function is deprecated because it calls a synchronous D-Bus method
* and modifies the content of the NMClient cache client side.
**/
@@ -1408,7 +1408,7 @@ nm_device_set_autoconnect(NMDevice *device, gboolean autoconnect)
_nm_client_set_property_sync_legacy(_nm_object_get_client(device),
_nm_object_get_path(device),
NM_DBUS_INTERFACE_DEVICE,
- "AutoConnect",
+ "Autoconnect",
"b",
autoconnect);
}