agents: don't complain when there aren't any system secrets

This commit is contained in:
Dan Williams
2011-03-16 20:53:13 -05:00
parent 08b2fa5401
commit e89a50d779

View File

@@ -729,9 +729,10 @@ get_agent_request_secrets (Request *req, gboolean include_system_secrets)
tmp = nm_connection_duplicate (req->connection); tmp = nm_connection_duplicate (req->connection);
nm_connection_clear_secrets (tmp); nm_connection_clear_secrets (tmp);
if (include_system_secrets) if (include_system_secrets) {
nm_connection_update_secrets (tmp, req->setting_name, req->existing_secrets, NULL); if (req->existing_secrets)
else { nm_connection_update_secrets (tmp, req->setting_name, req->existing_secrets, NULL);
} else {
/* Update secret flags in the temporary connection to indicate that /* Update secret flags in the temporary connection to indicate that
* the system secrets we're not sending to the agent aren't required, * the system secrets we're not sending to the agent aren't required,
* so the agent can properly validate UI controls and such. * so the agent can properly validate UI controls and such.