Skip to content

Commit

Permalink
stateengine plugin: fix logging of action count
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Sep 26, 2024
1 parent d27ef45 commit 8d3e1bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stateengine/StateEngineState.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,9 @@ def filter_issues(input_dict):
for attribute in child_item.conf:
self._log_develop("Filling state with {} action named {} for state {} with config {}", child_name, attribute, state.id, child_item.conf)
action_method.update_action_details(self, action_type)
_action_counts[action_name] += 1
_, _action_status = action_method.update(attribute, child_item.conf.get(attribute))
_result = action_method.update(attribute, child_item.conf.get(attribute))
_action_counts[action_name] += _result[0] if _result else 0
_action_status = _result[1]
if _action_status:
update_action_status(action_name, _action_status)
self._abitem.update_action_status(self.__action_status)
Expand All @@ -716,7 +717,7 @@ def filter_issues(input_dict):
update_action_status("enter_or_stay", _action_status)
self._abitem.update_action_status(self.__action_status)

_total_actioncount = _action_counts["enter"] + _action_counts["stay"] + _action_counts["enter_or_stay"] + _action_counts["leave"]
_total_actioncount = _action_counts["enter"] + _action_counts["stay"] + _action_counts["enter_or_stay"] + _action_counts["leave"] + _action_counts["pass"]

self.update_name(item_state, recursion_depth)
# Complete condition sets and actions at the end
Expand Down

0 comments on commit 8d3e1bb

Please sign in to comment.