Skip to content

Commit 2ee1aaf

Browse files
committed
Always consider retrieval of HOSTNAME to be optional
Signed-off-by: Ralph Castain <[email protected]>
1 parent d2b68e6 commit 2ee1aaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

orte/runtime/orte_globals.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.
1414
* Copyright (c) 2011-2013 Los Alamos National Security, LLC.
1515
* All rights reserved.
16-
* Copyright (c) 2013-2019 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2013-2020 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2014-2018 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2017 IBM Corporation. All rights reserved.
@@ -476,9 +476,9 @@ char* orte_get_proc_hostname(orte_process_name_t *proc)
476476
}
477477

478478
/* if we are an app, get the data from the modex db */
479-
OPAL_MODEX_RECV_VALUE(rc, OPAL_PMIX_HOSTNAME,
480-
(opal_process_name_t*)proc,
481-
&hostname, OPAL_STRING);
479+
OPAL_MODEX_RECV_VALUE_OPTIONAL(rc, OPAL_PMIX_HOSTNAME,
480+
(opal_process_name_t*)proc,
481+
&hostname, OPAL_STRING);
482482

483483
/* user is responsible for releasing the data */
484484
return hostname;

0 commit comments

Comments
 (0)