Skip to content

Commit

Permalink
Use correct data source when loading info
Browse files Browse the repository at this point in the history
preload-file requires a string, not a bool

Signed-off-by: Ralph Castain <[email protected]>
(corresponds to #1198)
  • Loading branch information
rhc54 committed Feb 5, 2022
1 parent eba9dc3 commit 2e55c93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prted/prte_app_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Copyright (c) 2016-2019 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2020 IBM Corporation. All rights reserved.
* Copyright (c) 2021 Nanook Consulting. All rights reserved.
* Copyright (c) 2021-2022 Nanook Consulting. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -229,8 +229,8 @@ static int create_app(prte_cmd_line_t *prte_cmd_line, int argc, char *argv[], pr
PMIX_INFO_LIST_ADD(rc, app->info, PMIX_PRELOAD_BIN, NULL, PMIX_BOOL);
}
}
if (prte_cmd_line_is_taken(prte_cmd_line, "preload-files")) {
PMIX_INFO_LIST_ADD(rc, app->info, PMIX_PRELOAD_FILES, NULL, PMIX_BOOL);
if (NULL != (pvalue = prte_cmd_line_get_param(prte_cmd_line, "preload-files", 0, 0))) {
PMIX_INFO_LIST_ADD(rc, app->info, PMIX_PRELOAD_FILES, pvalue->value.data.string, PMIX_STRING);
}

/* Do not try to find argv[0] here -- the starter is responsible
Expand Down

0 comments on commit 2e55c93

Please sign in to comment.