|
|
@@ -16,6 +16,7 @@
|
|
|
-module(emqx_bridge_resource).
|
|
|
|
|
|
-include_lib("emqx/include/logger.hrl").
|
|
|
+-include_lib("emqx_resource/include/emqx_resource.hrl").
|
|
|
|
|
|
-export([
|
|
|
bridge_to_resource_type/1,
|
|
|
@@ -224,7 +225,7 @@ recreate(Type, Name, Conf, Opts) ->
|
|
|
).
|
|
|
|
|
|
create_dry_run(Type, Conf0) ->
|
|
|
- TmpPath0 = iolist_to_binary(["bridges-create-dry-run:", emqx_misc:gen_id(8)]),
|
|
|
+ TmpPath0 = iolist_to_binary([?TEST_ID_PREFIX, emqx_misc:gen_id(8)]),
|
|
|
TmpPath = emqx_misc:safe_filename(TmpPath0),
|
|
|
Conf = emqx_map_lib:safe_atom_key_map(Conf0),
|
|
|
case emqx_connector_ssl:convert_certs(TmpPath, Conf) of
|