Skip to content

Commit

Permalink
stateengine plugin: make it possible to set value of list item by se_…
Browse files Browse the repository at this point in the history
…set_..: [foo, bar]
  • Loading branch information
onkelandy committed Sep 28, 2024
1 parent 2f18d59 commit b8c4ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stateengine/StateEngineValue.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def __do_cast(self, value, item_id=None):
try:
_newvalue = element if element == 'novalue' else self.__cast_func(element)
except Exception as ex:
_newvalue = None
_newvalue = element
_issue = "Problem casting element '{0}': {1}.".format(element, ex)
self._log_warning(_issue)
valuelist.append(_newvalue)
Expand Down Expand Up @@ -777,7 +777,7 @@ def __do_cast(self, value, item_id=None):
self._log_debug("Original casting of {} to {} failed. New cast is now: {}.",
value, self.__cast_func, type(value))
return value, _issue
return None, _issue
return value, _issue
return value, _issue

# Determine value by using a struct
Expand Down

0 comments on commit b8c4ee4

Please sign in to comment.