diff --git a/ompi/dpm/dpm.c b/ompi/dpm/dpm.c index 656a45d8a41..25f60586893 100644 --- a/ompi/dpm/dpm.c +++ b/ompi/dpm/dpm.c @@ -24,6 +24,7 @@ * Copyright (c) 2018-2022 Triad National Security, LLC. All rights * reserved. * Copyright (c) 2022 IBM Corporation. All rights reserved. + * Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -1243,19 +1244,9 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[], /* check for 'display_map' - a job-level key */ ompi_info_get_bool(array_of_info[i], "display_map", &local_spawn, &flag); if ( flag ) { - rc = dpm_convert(&job_info, "display_map", PMIX_MAPBY, NULL, "DISPLAY", true); - if (OMPI_SUCCESS != rc) { - OPAL_LIST_DESTRUCT(&job_info); - OPAL_LIST_DESTRUCT(&app_info); - PMIX_APP_FREE(apps, scount); - if (NULL != hostfiles) { - opal_argv_free(hostfiles); - } - if (NULL != dash_host) { - opal_argv_free(dash_host); - } - return MPI_ERR_SPAWN; - } + info = OBJ_NEW(opal_info_item_t); + PMIX_INFO_LOAD(&info->info, PMIX_DISPLAY_MAP, &local_spawn, PMIX_BOOL); + opal_list_append(&job_info, &info->super); } /* check for 'npernode' and 'ppr' - job-level key */