Settings plugins now return the connection that was reread from file when adding a connection, which means that any agent-owned secret is lost. Ensure that we don't forget agent-owned secrets by caching them and readding them to the new connection returned by plugins.
Fixes: 8a1d483ca867aa02a155bab934b19d74abac902c Fixes: b4594af55e0665917c48f0dd3cd56b49f2ea1f78
62141d59c settings: preserve agent-owned secrets on connection add
src/settings/nm-settings.c | 51 +++++++++++++++++++++++++++++-----------------
1 file changed, 32 insertions(+), 19 deletions(-)