Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benwilson512 committed Nov 10, 2015
1 parent 9a2d302 commit 6709fcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions lib/ex_aws/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ defmodule ExAws.Config do

def retrieve_runtime_config(%{config: config} = client) do
new_config = config
|> Enum.reduce(%{}, fn {k, v}, config ->
case retrieve_runtime_value(v, client) do
%{} = result -> Map.merge(config, result)
value -> Map.put(config, k, value)
end
|> Enum.reduce(%{}, fn
{:host, host}, config ->
Map.put(config, :host, host)
{k, v}, config ->
case retrieve_runtime_value(v, client) do
%{} = result -> Map.merge(config, result)
value -> Map.put(config, k, value)
end
end)

%{client | config: new_config}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule ExAws.Mixfile do

def project do
[app: :ex_aws,
version: "0.4.11",
version: "0.4.12",
elixir: "~> 1.0",
description: "AWS client. Currently supports Dynamo, Kinesis, Lambda, S3, SQS",
name: "ExAws",
Expand Down

0 comments on commit 6709fcc

Please sign in to comment.