Skip to content

Commit

Permalink
fix envvar credentials parsing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed May 30, 2016
1 parent c5997f0 commit 741e73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MBrace.AWS/Configuration/Arguments.fs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type ArgumentConfiguration =
| None ->
match parseResult.TryPostProcessResult(<@ Profile @>, fun pf -> MBraceAWSCredentials.FromCredentialsStore pf) with
| Some creds -> creds
| None when parseResult.Contains <@ Use_Environment_Credentials @> -> MBraceAWSCredentials.FromEnvironmentVariables()
| None when parseResult.Contains <@ Use_Environment_Credentials @> -> parseResult.Catch(MBraceAWSCredentials.FromEnvironmentVariables, showUsage = false)
| None -> parseResult.Raise("No AWS credentials specified for process", 2, showUsage = false)

let config = Configuration.Define(defaultRegion, credentials, ?resourcePrefix = clusterId)
Expand Down

0 comments on commit 741e73f

Please sign in to comment.