fix(emqx_resource): fix InstId type error
This commit is contained in:
parent
2def7e4ac2
commit
74b63f7d68
|
@ -172,7 +172,7 @@ create_dry_run(ResourceType, Config) ->
|
||||||
-spec create_dry_run_local(resource_type(), resource_config()) ->
|
-spec create_dry_run_local(resource_type(), resource_config()) ->
|
||||||
ok | {error, Reason :: term()}.
|
ok | {error, Reason :: term()}.
|
||||||
create_dry_run_local(ResourceType, Config) ->
|
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}).
|
call_instance(InstId, {create_dry_run, InstId, ResourceType, Config}).
|
||||||
|
|
||||||
-spec recreate(instance_id(), resource_type(), resource_config(), term()) ->
|
-spec recreate(instance_id(), resource_type(), resource_config(), term()) ->
|
||||||
|
|
Loading…
Reference in New Issue