Add FIXME comment

This commit is contained in:
Jean-Sébastien Pédron 2025-06-17 17:16:03 +02:00
parent 1ee4518dbe
commit f8b3732cd6
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 5 additions and 2 deletions

View File

@ -165,13 +165,16 @@ final_argparse_def(#?MODULE{argparse_def = PartialArgparseDef} = Context) ->
{ok, ArgparseDef1}
end.
get_full_argparse_def(#?MODULE{connection = Connection}) ->
get_full_argparse_def(#?MODULE{connection = Connection})
when Connection =/= undefined ->
%% TODO: Handle an undef failure when the remote node is too old.
RemoteArgparseDef = rabbit_cli_transport2:rpc(
Connection,
rabbit_cli_backend, final_argparse_def, []),
{ok, RemoteArgparseDef};
get_full_argparse_def(_) ->
get_full_argparse_def(#?MODULE{}) ->
%% FIXME: Load applications first, otherwise module attributes are
%% unavailable.
LocalArgparseDef = rabbit_cli_backend:final_argparse_def(),
{ok, LocalArgparseDef}.