nm: Fix auto connection when importing existing profile

The `NM.SettingConnection.props.autoconnect_slaves` should be
`NM.SettingConnectionAutoconnectSlaves.YES` instead of bool.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2021-02-05 11:45:17 +08:00 committed by Fernando Fernández Mancera
parent 40997a934c
commit 9e43f68bb7

View File

@ -81,7 +81,9 @@ class _ConnectionSetting:
new.props.uuid = base.props.uuid
new.props.type = base.props.type
new.props.autoconnect = True
new.props.autoconnect_slaves = True
new.props.autoconnect_slaves = (
NM.SettingConnectionAutoconnectSlaves.YES
)
self._setting = new