Browse Source

Fixed loading of .app config files from ETS filesystem.

Mikhail Sharoglazov 8 years ago
parent
commit
65d33e0f3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/provision/mad_repl.erl

+ 1 - 1
src/provision/mad_repl.erl

@@ -164,7 +164,7 @@ load_config(A) when is_list(A) ->
     case file:read_file(Name) of
          {ok,Bin} -> parse(binary_to_list(Bin));
          {error,_} -> case ets:lookup(filesystem,AppFile) of
-                          [{Name,Bin}] -> parse(binary_to_list(Bin));
+                          [{AppFile,Bin}] -> parse(binary_to_list(Bin));
                           _ -> [] end end.
 
 parse(String) ->