(w http.ResponseWriter, r *http.Request)
| 3090 | if len(profiles) == 1 { |
| 3091 | account.ProfileArn = profiles[0].ARN |
| 3092 | } |
| 3093 | if err := config.AddAccount(account); err != nil { |
| 3094 | h.microsoftFlowMu.Unlock() |
| 3095 | h.writeAddAccountError(w, err) |
| 3096 | return |
| 3097 | } |
| 3098 | delete(h.microsoftCanceled, strings.TrimSpace(req.SessionID)) |
| 3099 | h.microsoftFlowMu.Unlock() |
| 3100 | h.pool.Reload() |
| 3101 | |
| 3102 | response := map[string]interface{}{ |
| 3103 | "success": true, |
| 3104 | "stage": "complete", |
no test coverage detected