fix(emqx_resource): call to undefined function hocon:richmap_to_map/1
This commit is contained in:
parent
16c0a5b80a
commit
3c1c457697
|
@ -286,7 +286,7 @@ check_config(ResourceType, RawConfigTerm) ->
|
|||
do_check_config(ResourceType, MapConfig) ->
|
||||
case ?SAFE_CALL(hocon_schema:check(ResourceType, MapConfig)) of
|
||||
{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.
|
||||
|
||||
-spec check_and_create(instance_id(), resource_type(), binary() | term()) ->
|
||||
|
|
Loading…
Reference in New Issue