diff --git a/rebar.config b/rebar.config index 5ae24a2..1e551d7 100644 --- a/rebar.config +++ b/rebar.config @@ -1,7 +1,7 @@ {deps, [ {cpflib, {git, "git://github.com/aialferov/cpflib", {tag, "master"}}}, {hackney, {git, "git://github.com/benoitc/hackney.git", {tag, "1.11.0"}}}, - {ewsc, {git, "git://github.com/aialferov/ewsc", {tag, "master"}}}, + {ewsc, {git, "git://github.com/aialferov/ewsc", {tag, "0.2.0"}}}, {jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "master"}}} ]}. {plugins, [ diff --git a/src/kube-vxlan-controller.app.src.script b/src/kube-vxlan-controller.app.src.script index a498b46..14a6172 100644 --- a/src/kube-vxlan-controller.app.src.script +++ b/src/kube-vxlan-controller.app.src.script @@ -1,6 +1,6 @@ {application, 'kube-vxlan-controller', [ {description, "Kubernetes VXLAN contoller"}, - {vsn, "0.10.2"}, + {vsn, "0.10.3"}, {modules, []}, {applications, [kernel, stdlib, inets, cpflib, hackney, ewsc, jsx]}, {env, [ diff --git a/src/kube_vxlan_controller_pod.erl b/src/kube_vxlan_controller_pod.erl index f62d77c..e92c8ef 100644 --- a/src/kube_vxlan_controller_pod.erl +++ b/src/kube_vxlan_controller_pod.erl @@ -51,7 +51,7 @@ exec(Namespace, PodName, ContainerName, Command, Config) -> lists:reverse(string:split(Command, " ", all)) ), - try ?K8s:ws_connect(Resource, Query, Config) of + case ?K8s:ws_connect(Resource, Query, Config) of {ok, Socket} -> case ?K8s:ws_recv(Socket) of {ok, Result} -> @@ -66,10 +66,6 @@ exec(Namespace, PodName, ContainerName, Command, Config) -> {error, Reason} -> ?Log:error(Reason), "" - catch - _ClassN:_ExceptionPatternN:Stacktrace -> - ?Log:error(Stacktrace), - "" end. fmt(Format, Args) -> lists:flatten(io_lib:format(Format, Args)).