fix(emqx_resource): call to undefined function hocon:richmap_to_map/1

This commit is contained in:
Shawn 2021-06-07 21:54:17 +08:00
parent 16c0a5b80a
commit 3c1c457697
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ check_config(ResourceType, RawConfigTerm) ->
do_check_config(ResourceType, MapConfig) -> do_check_config(ResourceType, MapConfig) ->
case ?SAFE_CALL(hocon_schema:check(ResourceType, MapConfig)) of case ?SAFE_CALL(hocon_schema:check(ResourceType, MapConfig)) of
{error, Reason} -> {error, Reason}; {error, Reason} -> {error, Reason};
Config -> {ok, maps:get(<<"config">>, hocon:richmap_to_map(Config))} Config -> {ok, maps:get(<<"config">>, hocon_schema:richmap_to_map(Config))}
end. end.
-spec check_and_create(instance_id(), resource_type(), binary() | term()) -> -spec check_and_create(instance_id(), resource_type(), binary() | term()) ->