diff options
author | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-04-12 19:48:33 -0700 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-04-12 19:48:33 -0700 |
commit | d9ae25ba4ded507ee057e0d099eb77e8d36e8cf8 (patch) | |
tree | ab268af84cab224f74102a9750e47def56e33156 /components/rvi_common | |
parent | 8da22cf8accba8d381926940883e7260a27f3a54 (diff) | |
download | rvi_core-d9ae25ba4ded507ee057e0d099eb77e8d36e8cf8.tar.gz |
Fixed service discovery
Diffstat (limited to 'components/rvi_common')
-rw-r--r-- | components/rvi_common/src/rvi_common.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/rvi_common/src/rvi_common.erl b/components/rvi_common/src/rvi_common.erl index e50f9ec..2c16b40 100644 --- a/components/rvi_common/src/rvi_common.erl +++ b/components/rvi_common/src/rvi_common.erl @@ -147,6 +147,9 @@ get_request_result(Other)-> json_argument([], [], Acc) -> Acc; +json_argument([Arg | AT], [Spec | ST], Acc) when is_atom(Arg)-> + json_argument(AT, ST, [ { Spec, atom_to_list(Arg) } | Acc]); + json_argument([Arg | AT], [Spec | ST], Acc) -> json_argument(AT, ST, [ { Spec, Arg } | Acc]). |