Permalink
Browse files

Allow backups to be an empty list

This wasn't allowed previously. It's useful if you want to bring
down a system gracefully.
  • Loading branch information...
1 parent 52efcc9 commit 48cbb57a09f83e406a5f6bdc1ec2ab484e5c89c8 @matthiasl committed Apr 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 erlang/gth_xml_parse.erl
View
2 erlang/gth_xml_parse.erl
@@ -135,7 +135,7 @@ checked(_) ->
update({controller, A, [], _}) ->
[ATimeout, ABackups] = multiple_extract(A, ["timeout", {"backups", none}]),
Backups = case ABackups of
- [_|_] ->
+ List when is_list(List) ->
string:tokens(ABackups, " ");
_ ->
none

0 comments on commit 48cbb57

Please sign in to comment.