Skip to content

Commit

Permalink
Fix Readme, Address hlintBot review
Browse files Browse the repository at this point in the history
  • Loading branch information
tmspzz committed May 3, 2018
1 parent 8619ad8 commit 5a51515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ environment variable to your desired profile.

### Setting up endpoint override for Minio

To you `.aws/config` in the profile you wish to use add the an `endpoint` key like so
To your `.aws/config` in the profile section you wish to use, add an `endpoint` key like so

```
[default]
Expand Down
2 changes: 1 addition & 1 deletion src/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ getAWSRegion :: (MonadIO m, MonadCatch m) => ExceptT String m AWS.Env
getAWSRegion = do
region <- discoverRegion
profile <- liftIO $ lookupEnv "AWS_PROFILE"
endpointURL <- lift getS3ConfigFile >>= (flip getEndpointFromFile) (fromMaybe "default" profile)
endpointURL <- lift getS3ConfigFile >>= flip getEndpointFromFile (fromMaybe "default" profile)
set AWS.envRegion region <$> (AWS.newEnv AWS.Discover <&> AWS.configure (s3EndpointOverride endpointURL))


Expand Down

0 comments on commit 5a51515

Please sign in to comment.