fix(rule-engine): fix update resource maybe remove resource
This commit is contained in:
parent
3322bb60c3
commit
f3420e8810
|
@ -297,8 +297,7 @@ do_update_resource(#{id := Id, type := Type, description:= NewDescription, confi
|
|||
type = Type,
|
||||
config = Config,
|
||||
description = NewDescription,
|
||||
created_at = erlang:system_time(millisecond)}),
|
||||
cluster_call(clear_resource, [Module, Destroy, Id])
|
||||
created_at = erlang:system_time(millisecond)})
|
||||
end.
|
||||
|
||||
-spec(start_resource(resource_id()) -> ok | {error, Reason :: term()}).
|
||||
|
|
|
@ -355,9 +355,9 @@ pool_opts(Params = #{<<"url">> := URL}) ->
|
|||
end
|
||||
end,
|
||||
MoreOpts = case Scheme of
|
||||
<<"http">> ->
|
||||
"http" ->
|
||||
[{transport_opts, [Inet]}];
|
||||
<<"https">> ->
|
||||
"https" ->
|
||||
KeyFile = maps:get(<<"keyfile">>, Params),
|
||||
CertFile = maps:get(<<"certfile">>, Params),
|
||||
CACertFile = maps:get(<<"cacertfile">>, Params),
|
||||
|
|
Loading…
Reference in New Issue