Skip to content

Commit 7cbf16a

Browse files
committed
Fix undef call
1 parent 8ed20c2 commit 7cbf16a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbit/src/rabbit_definitions.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,15 +1195,15 @@ cmd_import_definitions(#rabbit_cli{arg_map = ArgMap} = Context) ->
11951195
end.
11961196

11971197
import_from_file(Context, Filename) ->
1198-
case rabbit_cli_backend:read_file(Context, Filename) of
1198+
case rabbit_cli_io:read_file(Context, Filename) of
11991199
{ok, Data} ->
12001200
do_import(Context, Data);
12011201
{error, _} = Error ->
12021202
Error
12031203
end.
12041204

12051205
import_from_stdin(Context) ->
1206-
case rabbit_cli_backend:read_stdin(Context) of
1206+
case rabbit_cli_io:read_stdin(Context) of
12071207
{ok, Data} ->
12081208
do_import(Context, Data);
12091209
{error, _} = Error ->
@@ -1236,7 +1236,7 @@ cmd_export_definitions(#rabbit_cli{arg_map = ArgMap} = Context) ->
12361236

12371237
export_to_file(Context, Defs, Filename) ->
12381238
Json = json:encode(Defs),
1239-
rabbit_cli_backend:write_file(Context, Filename, Json).
1239+
rabbit_cli_io:write_file(Context, Filename, Json).
12401240

12411241
export_to_stdin(#rabbit_cli{terminal = Terminal}, Defs) ->
12421242
Json = case Terminal of

0 commit comments

Comments
 (0)