Skip to content

Commit

Permalink
#308 fix cannot display executor list bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kfchu committed Jan 31, 2018
1 parent 1785e78 commit 8df0d67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public List<ServerBriefInfo> getExecutors(String namespace, ServerStatus expecte
List<ServerBriefInfo> executorInfoList = Lists.newArrayList();
for (String executor : executors) {
ServerBriefInfo executorInfo = getServerBriefInfo(executor, curatorFrameworkOp);
if (executorInfo.getStatus() == expectedServerStatus) {
if (expectedServerStatus == null || executorInfo.getStatus() == expectedServerStatus) {
executorInfoList.add(executorInfo);
}
}
Expand Down

0 comments on commit 8df0d67

Please sign in to comment.