Skip to content

Commit

Permalink
Merge pull request #324 from StackStorm/fix/criteria-optional
Browse files Browse the repository at this point in the history
Assign default value to RuleAPI.criteria.
  • Loading branch information
Manas Kelshikar committed Aug 1, 2014
2 parents a11350e + 3528918 commit 8c038d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion st2common/st2common/models/api/reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class RuleAPI(StormBaseAPI):
does not lead to execution of a action and vice-versa.
"""
trigger = wstypes.DictType(str, str)
criteria = wstypes.DictType(str, wstypes.DictType(str, str))
criteria = wstypes.wsattr(wstypes.DictType(str, wstypes.DictType(str, str)), default=True)
action = ActionSpec
enabled = wstypes.wsattr(bool, default=True)

Expand Down

0 comments on commit 8c038d1

Please sign in to comment.