File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11
11
* All rights reserved.
12
12
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
13
13
* Copyright (c) 2014 Intel, Inc. All rights reserved.
14
+ * Copyright (c) 2016 IBM Corporation. All rights reserved.
14
15
* $COPYRIGHT$
15
16
*
16
17
* Additional copyrights may follow
27
28
28
29
#include "orte/util/show_help.h"
29
30
#include "opal/util/os_path.h"
31
+ #include "opal/util/net.h"
30
32
31
33
#include "orte/mca/errmgr/errmgr.h"
32
34
#include "orte/runtime/orte_globals.h"
@@ -127,6 +129,7 @@ static int discover(opal_list_t* nodelist, char *pbs_jobid)
127
129
FILE * fp ;
128
130
char * hostname , * cppn ;
129
131
int ppn ;
132
+ char * ptr ;
130
133
131
134
/* Ignore anything that the user already specified -- we're
132
135
getting nodes only from TM. */
@@ -168,6 +171,11 @@ static int discover(opal_list_t* nodelist, char *pbs_jobid)
168
171
169
172
nodeid = 0 ;
170
173
while (NULL != (hostname = tm_getline (fp ))) {
174
+ if ( !orte_keep_fqdn_hostnames && !opal_net_isaddr (hostname ) ) {
175
+ if (NULL != (ptr = strchr (hostname , '.' ))) {
176
+ * ptr = '\0' ;
177
+ }
178
+ }
171
179
172
180
OPAL_OUTPUT_VERBOSE ((1 , orte_ras_base_framework .framework_output ,
173
181
"%s ras:tm:allocate:discover: got hostname %s" ,
You can’t perform that action at this time.
0 commit comments