Skip to content

Commit

Permalink
Returned error when configured vault not found
Browse files Browse the repository at this point in the history
  • Loading branch information
delinea-sagar committed Apr 2, 2024
1 parent 2ba0a9e commit 6d5715c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ func (s *Server) checkPlatformDetails() (string, error) {
}
if vaultURL != "" {
s.ServerURL = vaultURL
} else {
return "", fmt.Errorf("no configured vault found")
}

return advanceAuthJsonResponse.Result.OAuthTokens.AccessToken, nil
Expand Down

0 comments on commit 6d5715c

Please sign in to comment.