Fix dialyzer complaints in machi_lifecycle_mgr.erl
This commit is contained in:
parent
1d1bfadb96
commit
51a05ba770
1 changed files with 13 additions and 10 deletions
|
@ -486,13 +486,13 @@ process_pending_flu({File, P}, S) ->
|
||||||
_ = move_to_rejected(File, S),
|
_ = move_to_rejected(File, S),
|
||||||
S;
|
S;
|
||||||
true ->
|
true ->
|
||||||
case machi_flu_psup:start_flu_package(P) of
|
try
|
||||||
{ok, SupPid} ->
|
{ok, SupPid} = machi_flu_psup:start_flu_package(P),
|
||||||
lager:info("Started FLU ~w with supervisor pid ~p\n",
|
lager:info("Started FLU ~w with supervisor pid ~p\n",
|
||||||
[FLU, SupPid]),
|
[FLU, SupPid]),
|
||||||
_ = move_to_flu_config(FLU, File, S),
|
_ = move_to_flu_config(FLU, File, S),
|
||||||
S;
|
S
|
||||||
Else ->
|
catch error:Else ->
|
||||||
lager:error("Start FLU ~w failed: ~p\n", [FLU, Else]),
|
lager:error("Start FLU ~w failed: ~p\n", [FLU, Else]),
|
||||||
_ = move_to_rejected(File, S),
|
_ = move_to_rejected(File, S),
|
||||||
S
|
S
|
||||||
|
@ -581,7 +581,8 @@ process_pending_chain2(File, CD, RemovedFLUs, ChainConfigAction, S) ->
|
||||||
%% another dir on same device, but ... where?
|
%% another dir on same device, but ... where?
|
||||||
_ = file:rename(Src2, Dst2),
|
_ = file:rename(Src2, Dst2),
|
||||||
ok
|
ok
|
||||||
end || FLU <- LocalRemovedFLUs]
|
end || FLU <- LocalRemovedFLUs],
|
||||||
|
ok
|
||||||
end,
|
end,
|
||||||
#chain_def_v1{name=Name} = CD,
|
#chain_def_v1{name=Name} = CD,
|
||||||
if ChainConfigAction == move ->
|
if ChainConfigAction == move ->
|
||||||
|
@ -933,7 +934,8 @@ diff_env({KV_old, KV_new, _IsNew}=E, RelativeHost) ->
|
||||||
{flu, Name, Host, _Port, _Ps} = V,
|
{flu, Name, Host, _Port, _Ps} = V,
|
||||||
if Host == RelativeHost orelse RelativeHost == all ->
|
if Host == RelativeHost orelse RelativeHost == all ->
|
||||||
{ok, P_srvr} = d_find({kv,{p_srvr,Name}}, E),
|
{ok, P_srvr} = d_find({kv,{p_srvr,Name}}, E),
|
||||||
Add(P_srvr);
|
Add(P_srvr),
|
||||||
|
ok;
|
||||||
true ->
|
true ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
|
@ -986,7 +988,8 @@ diff_env({KV_old, KV_new, _IsNew}=E, RelativeHost) ->
|
||||||
mode=CMode, full=Ps_F, witnesses=Ps_W,
|
mode=CMode, full=Ps_F, witnesses=Ps_W,
|
||||||
old_full=OldFull, old_witnesses=OldWitnesses,
|
old_full=OldFull, old_witnesses=OldWitnesses,
|
||||||
local_run=Run, local_stop=Stop,
|
local_run=Run, local_stop=Stop,
|
||||||
props=Props ++ PropsExtra});
|
props=Props ++ PropsExtra}),
|
||||||
|
ok;
|
||||||
false ->
|
false ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue