Permalink
Browse files

Accept atoms for values in recipe conditions

  • Loading branch information...
1 parent 61adb23 commit c29dca2503329f933fbb849f2c74859ab90d50f3 Jan Vincent Liwanag committed with lordnull Nov 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/cpx_web_management.erl
@@ -2995,7 +2995,9 @@ encode_recipe_conditions([{Prop, Comp, Val} | Tail], Acc) ->
Val when is_integer(Val) ->
Val;
Val when is_list(Val) ->
- list_to_binary(Val)
+ list_to_binary(Val);
+ Val when is_atom(Val) ->
+ Val
end,
Jcond = {struct, [
{<<"property">>, encode_recipe_conditions_prop(Prop)},

0 comments on commit c29dca2

Please sign in to comment.