Skip to content

Commit 73599b0

Browse files
committed
Minor change
1 parent 547f94d commit 73599b0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hpcopr/cluster_general_funcs.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,7 +4265,9 @@ int check_cluster_status(char* cluster_workdir, char* crypto_keyfile, char* sshk
42654265
}
42664266
if(strcmp(cluster_role,"opr")==0){
42674267
putchar('\n');
4268-
remote_exec_general(cluster_workdir,crypto_keyfile,sshkey_dir,"root","sinfo -N","",0,3,"","");
4268+
if(remote_exec_general(cluster_workdir,crypto_keyfile,sshkey_dir,"root","sinfo -N","",0,3,"","")!=0){
4269+
return 1;
4270+
}
42694271
return 0;
42704272
}
42714273
else{
@@ -4284,7 +4286,9 @@ int check_cluster_status(char* cluster_workdir, char* crypto_keyfile, char* sshk
42844286
return -1;
42854287
}
42864288
putchar('\n');
4287-
remote_exec_general(cluster_workdir,crypto_keyfile,sshkey_dir,user_name,"sinfo -N","",0,3,"","");
4289+
if(remote_exec_general(cluster_workdir,crypto_keyfile,sshkey_dir,user_name,"sinfo -N","",0,3,"","")!=0){
4290+
return 1;
4291+
}
42884292
return 0;
42894293
}
42904294
}

0 commit comments

Comments
 (0)