Skip to content

Commit

Permalink
Fix action executer: remove null filter for device actions (#515)
Browse files Browse the repository at this point in the history
* Fix executor
  • Loading branch information
olivershen-wow authored Jun 28, 2023
1 parent f886a14 commit 8fde053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public List<Exception> doActions(@NotNull DeviceDriver deviceDriverManager,
List<Exception> exceptions = new ArrayList<>();
//filter todoActions
Stream<DeviceAction> legalActionStream = actions.getOrDefault(when, new ArrayList<>()).stream()
.filter(deviceAction -> actionTypes.contains(deviceAction.getMethod()) && StringUtils.isNotEmpty(deviceAction.getDeviceType()));
.filter(deviceAction -> actionTypes.contains(deviceAction.getMethod()));
if (runOnAgentOnly) {
legalActionStream = legalActionStream.filter(deviceAction -> Const.OperatedDevice.AGENT.equalsIgnoreCase(deviceAction.getDeviceType()));
} else {
Expand Down

0 comments on commit 8fde053

Please sign in to comment.