fix(emqx_resource): fix InstId type error

This commit is contained in:
zhanghongtong 2021-10-21 10:54:05 +08:00 committed by Rory Z
parent 198ae4c782
commit 2307bdd868
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ create_dry_run(ResourceType, Config) ->
-spec create_dry_run_local(resource_type(), resource_config()) ->
ok | {error, Reason :: term()}.
create_dry_run_local(ResourceType, Config) ->
InstId = emqx_misc:gen_id(16),
InstId = iolist_to_binary(emqx_misc:gen_id(16)),
call_instance(InstId, {create_dry_run, InstId, ResourceType, Config}).
-spec recreate(instance_id(), resource_type(), resource_config(), term()) ->