refactor: rename temporary name

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
Thales Macedo Garitezi 2023-08-04 11:13:09 -03:00
parent 5c8dc092a1
commit 963d63b899
1 changed files with 2 additions and 2 deletions

View File

@ -265,8 +265,8 @@ create_dry_run(Type, Conf0) ->
TypeBin = bin(Type),
TypeAtom = safe_atom(Type),
Conf1 = maps:without([<<"name">>], Conf0),
RawConf = #{<<"bridges">> => #{TypeBin => #{<<"a">> => Conf1}}},
#{bridges := #{TypeAtom := #{a := Conf}}} =
RawConf = #{<<"bridges">> => #{TypeBin => #{<<"temp_name">> => Conf1}}},
#{bridges := #{TypeAtom := #{temp_name := Conf}}} =
hocon_tconf:check_plain(
emqx_bridge_schema,
RawConf,