Skip to content

Commit

Permalink
check system name before using the cached info
Browse files Browse the repository at this point in the history
Required-githooks: true

Signed-off-by: Mohamad Chaarawi <[email protected]>
  • Loading branch information
mchaarawi committed Apr 24, 2024
1 parent e5fa214 commit 7d7da6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mgmt/cli_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ attach(const char *name, struct dc_mgmt_sys **sysp)
goto out;
}

if (!resp_g) {
if (!strcmp(name, agent_sys_name) || !resp_g) {
need_free_resp = true;
rc = get_attach_info(name, true /* all_ranks */, &sys->sy_info, &resp);
if (rc != 0)
Expand Down

0 comments on commit 7d7da6a

Please sign in to comment.