fix(emqx_management): Dialyzer warnings
This commit is contained in:
parent
37e3b11263
commit
1a8baa9d8a
|
@ -187,11 +187,11 @@ do_import(Filename) ->
|
||||||
emqx_mgmt:import_applications(maps:get(<<"apps">>, Data, [])),
|
emqx_mgmt:import_applications(maps:get(<<"apps">>, Data, [])),
|
||||||
emqx_mgmt:import_users(maps:get(<<"users">>, Data, [])),
|
emqx_mgmt:import_users(maps:get(<<"users">>, Data, [])),
|
||||||
emqx_mgmt:import_modules(maps:get(<<"modules">>, Data, [])),
|
emqx_mgmt:import_modules(maps:get(<<"modules">>, Data, [])),
|
||||||
emqx_mgmt:import_auth_clientid(maps:get(<<"auth_clientid">>, Data, [])),
|
_ = emqx_mgmt:import_auth_clientid(maps:get(<<"auth_clientid">>, Data, [])),
|
||||||
emqx_mgmt:import_auth_username(maps:get(<<"auth_username">>, Data, [])),
|
_ = emqx_mgmt:import_auth_username(maps:get(<<"auth_username">>, Data, [])),
|
||||||
emqx_mgmt:import_auth_mnesia(maps:get(<<"auth_mnesia">>, Data, []), Version),
|
_ = emqx_mgmt:import_auth_mnesia(maps:get(<<"auth_mnesia">>, Data, []), Version),
|
||||||
emqx_mgmt:import_acl_mnesia(maps:get(<<"acl_mnesia">>, Data, []), Version),
|
_ = emqx_mgmt:import_acl_mnesia(maps:get(<<"acl_mnesia">>, Data, []), Version),
|
||||||
emqx_mgmt:import_schemas(maps:get(<<"schemas">>, Data, [])),
|
_ = emqx_mgmt:import_schemas(maps:get(<<"schemas">>, Data, [])),
|
||||||
logger:debug("The emqx data has been imported successfully"),
|
logger:debug("The emqx data has been imported successfully"),
|
||||||
ok
|
ok
|
||||||
catch Class:Reason:Stack ->
|
catch Class:Reason:Stack ->
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
start(_Type, _Args) ->
|
start(_Type, _Args) ->
|
||||||
{ok, Sup} = emqx_mgmt_sup:start_link(),
|
{ok, Sup} = emqx_mgmt_sup:start_link(),
|
||||||
emqx_mgmt_auth:add_default_app(),
|
_ = emqx_mgmt_auth:add_default_app(),
|
||||||
emqx_mgmt_http:start_listeners(),
|
emqx_mgmt_http:start_listeners(),
|
||||||
emqx_mgmt_cli:load(),
|
emqx_mgmt_cli:load(),
|
||||||
{ok, Sup}.
|
{ok, Sup}.
|
||||||
|
|
|
@ -606,11 +606,11 @@ data(["import", Filename]) ->
|
||||||
emqx_mgmt:import_blacklist(maps:get(<<"blacklist">>, Data, [])),
|
emqx_mgmt:import_blacklist(maps:get(<<"blacklist">>, Data, [])),
|
||||||
emqx_mgmt:import_applications(maps:get(<<"apps">>, Data, [])),
|
emqx_mgmt:import_applications(maps:get(<<"apps">>, Data, [])),
|
||||||
emqx_mgmt:import_users(maps:get(<<"users">>, Data, [])),
|
emqx_mgmt:import_users(maps:get(<<"users">>, Data, [])),
|
||||||
emqx_mgmt:import_auth_clientid(maps:get(<<"auth_clientid">>, Data, [])),
|
_ = emqx_mgmt:import_auth_clientid(maps:get(<<"auth_clientid">>, Data, [])),
|
||||||
emqx_mgmt:import_auth_username(maps:get(<<"auth_username">>, Data, [])),
|
_ = emqx_mgmt:import_auth_username(maps:get(<<"auth_username">>, Data, [])),
|
||||||
emqx_mgmt:import_auth_mnesia(maps:get(<<"auth_mnesia">>, Data, [])),
|
_ = emqx_mgmt:import_auth_mnesia(maps:get(<<"auth_mnesia">>, Data, [])),
|
||||||
emqx_mgmt:import_acl_mnesia(maps:get(<<"acl_mnesia">>, Data, [])),
|
_ = emqx_mgmt:import_acl_mnesia(maps:get(<<"acl_mnesia">>, Data, [])),
|
||||||
emqx_mgmt:import_schemas(maps:get(<<"schemas">>, Data, [])),
|
_ = emqx_mgmt:import_schemas(maps:get(<<"schemas">>, Data, [])),
|
||||||
emqx_ctl:print("The emqx data has been imported successfully.~n")
|
emqx_ctl:print("The emqx data has been imported successfully.~n")
|
||||||
catch Class:Reason:Stack ->
|
catch Class:Reason:Stack ->
|
||||||
emqx_ctl:print("The emqx data import failed due: ~0p~n", [{Class,Reason,Stack}])
|
emqx_ctl:print("The emqx data import failed due: ~0p~n", [{Class,Reason,Stack}])
|
||||||
|
|
Loading…
Reference in New Issue